How to batch update rows from another table ?

UPDATE
ISTYENI
SET
ISTYENI.IST_IP1 = CONVERT(TINYINT, PARSENAME(IST.IST_REMOTEADRES, 4))
FROM
T_IST_ISTATISTIK_YENI_EDITED ISTYENI
INNER JOIN T_IST_ISTATISTIK IST ON IST.IST_KOD = ISTYENI.IST_KOD
WHERE ISTYENI.IST_KOD>0 AND ISTYENI.IST_KOD<1000

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s