這只是一篇文記,我不打算詳細說明
主要功能就是把某一個表的資料參照過來做更新
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);
隨機文章
- 讓病魔遠離家人 (2007-10-31)
- 開立數位 饅頭機 VOVO V10 開箱測試文 (2013-12-15)
- 去年逾4萬家公司倒閉 創新高 (2008-01-08)
- 智器SmartQ V7 開箱測試文 (2010-02-12)
- 拿官來壓我 當我吃素的嗎? (2016-09-29)