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.
试图将新数据从 table1 复制到 table2。我不确定如何以另一种方式对其进行编码
INSERT table1 SELECT x.*,y.TIMESTAM FROM table1 x, table2y WHERE x.TIMESTAM > y.TIMESTAM;
如果时间戳是表 2 中较新的 (>) 行 1,我想复制表 1 中的所有列
Here's how you copy all newer data from table2 into table1:
INSERT INTO table1 SELECT * FROM table2 WHERE TIMESTAM > (select MAX(TIMESTAM) FROM table1);