ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¨Ï¥Î SQL»yªk ON DUPLICATE KEY UPDATE

[µo°Ý] ¨Ï¥Î SQL»yªk ON DUPLICATE KEY UPDATE

¥»©«³Ì«á¥Ñ starry1314 ©ó 2017-12-29 17:07 ½s¿è

sql = "insert into Àç·~ÃB(³æ¸¹,½s¸¹,©m¦W)  select ³æ¸¹,½s¸¹,©m¦W from TMP_Àç·~ÃB t on duplicate key update  ½s¸¹ = t.½s¸¹,©m¦W = t.©m¦W;"
      
½Ð°Ý³o¼Ëªº¨Ï¥Î¤è¦¡¦³¤°»ò¿ù»~¶Ü?
¥¼©R¦W.png

        ÀR«ä¦Û¦b : ¡i»X½ªªº¦Û¥Ñ¡j¤H±`¦b¤°»ò³£¥i¥H¦Û¥Ñ¦Û¦bªº®É­Ô¡A«o³Q³oºØÀH¤ß©Ò±ýªº¦Û¥Ñ»X½ª¡AµêÂY®É¥ú¦Ó²@µLıª¾¡C
ªð¦^¦Cªí ¤W¤@¥DÃD