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