這只是一篇文記,我不打算詳細說明
主要功能就是把某一個表的資料參照過來做更新
UPDATE file_record
SET tid = (select cdb_posts.tid from cdb_posts where cdb_posts.pid=file_record.pid)
WHERE EXISTS (select cdb_posts.tid from cdb_posts where cdb_posts.pid=file_record.pid);
隨機文章
- 你不想拿設計獎,大有人想要。 (2011-03-02)
- 摩托羅拉洋蔥機~超爛UI (2008-06-01)
- 笨笨的YouTube (2009-09-28)
- Visual Studio Code 使用 python 支援 mysql (2023-10-18)
- 終於收到賣咖啡的通知信件 (2011-04-27)