Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我使用的代码:
DELETE FROM db1.table1 WHERE db1.table1.Timestamp = db2.table2.Timestamp;
根本无法准备陈述。这让我疯狂!
Try this
DELETE from db1.table1 WHERE db1.table1.Timestamp IN( SELECT Timestamp FROM db2.table2) ;
It will delete all matching records from db1.table1 with db2.table2
db1.table1
db2.table2