這只是一篇文記,我不打算詳細說明
主要功能就是把某一個表的資料參照過來做更新
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);
隨機文章
- 108課綱等於機器人寫程式? (2020-07-05)
- 服務超爛的國泰世華銀行 (2009-06-30)
- Debian 13上,安裝docker+portainer (2026-02-12)
- Youtube 廣告攔截器違反《YouTube 服務條款》 解法 (2023-11-23)
- 歡迎引用 請勿瓢竊 (2010-02-11)








