»Ë»Ñ Æ÷·³
°³¹ßÀÚÆ÷·³ ÀÔ´Ï´Ù.
  • ºÏ¸¶Å© ¾ÆÀÌÄÜ

mysql update Äõ¸® °ü·Ã Áú¹®µå¸³´Ï´Ù.1

mysql DB¿¡¼­.. »õ·Î¿î Çʵ带 Ãß°¡Çؼ­ ±âÁ¸ µ¥ÀÌÅ͸¦ ÀÏ°ýÀûÀ¸·Î Áý¾î³ÖÀ¸·Á°í Çϴµ¥¿ä.
table_a ¿¡ date¶ó´Â Çʵ带 Ãß°¡ÇÏ°í... table_bÀÇ date¸¦ table_aÀÇ »ý¼ºµÈ Çʵ忡 ÇÑ ¹ø¿¡ ³ÖÀ¸·Á°í ÇØ¿ä.
±×·±µ¥ ¾Æ·¡¿Í °°ÀÌ Äõ¸®¸¦ ½ÇÇàÇϸé..
'SQL ¿ÀÈÄ(1248): Every derived table must have its own alias' ¶ó´Â ¿¡·¯°¡ ¶ß³×¿ä.

UPDATE
          (
          SELECT
                   A.date AS A_date,
                   B.date AS B_date
          FROM table_a A,
                    table_b B
          WHERE A.number = B.number
          )
SET A_date = B_date

ÀÌ·¸°Ô ÇÏ´Â°Ô ¸Â´ÂÁö.. Ȥ½Ã À߸øµÇ¾ú´Ù¸é ¾îµð¸¦ ¼öÁ¤ÇØ¾ß ÇÒ±î¿ä? ¤Ð¤Ð

0
ÃßõÇϱ⠴ٸ¥ÀÇ°ß 0
|
°øÀ¯¹öÆ°

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ÀÚ½Â3
  • ¾Ë¸² ¿å¼³, »óó ÁÙ ¼ö ÀÖ´Â ¾ÇÇÃÀº »ï°¡ÁÖ¼¼¿ä.
©¹æ »çÁø  
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û