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.
我必须备份一个可以更改列数的表。当我的 etl 脚本启动时,它不知道列数。如何即时创建 INSERT INTO table VALUES (?1, ?2, ...) 脚本?
问候, 雅克
根据数据库,可以使用 CREATE TABLE FROM SELECT (或类似的)来备份表。例子:
CREATE TABLE new_table AS (SELECT * FROM old_table);