這只是一篇文記,我不打算詳細說明
主要功能就是把某一個表的資料參照過來做更新
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);
隨機文章
- 捕夢網數位科技的記憶體資源給的比Server Zoo主機動物園來的少 (2015-02-01)
- 請網友理性發言,勿為人身攻擊,避免綠營嫁禍官網 (2008-01-10)
- 人的一生有許多難以取捨 (2007-10-31)
- 爛到一個爆炸的基點資訊 (2013-05-10)
- 市話可少繳5元月租 直撥123能取消 (2007-10-31)