這只是一篇文記,我不打算詳細說明
主要功能就是把某一個表的資料參照過來做更新
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);
隨機文章
- 透過免費Linux 打造舊電腦成為工作機 (2020-09-21)
- CPU-AMD稱OLPC百元筆記本最綠色 閒置能耗僅1瓦 (2007-11-03)
- debian 10 X-Window to Text Mode (2020-08-26)
- SEO測試-961123-樂多打敗Blogger (2007-11-23)
- 半年壞兩次的OCZ SSD (2012-09-21)