需要从table1复制一行到table2,结构相同,除了前两列——NN(key, autoincrement)和comments,必须写下解释。
INSERT INTO `table2` (comments,id,current_time,user_name)
VALUES ('текст пояснения',
SELECT id,current_time,user_name
FROM `table1` WHERE id=168)
像这样的东西,但它不起作用。
需要从table1复制一行到table2,结构相同,除了前两列——NN(key, autoincrement)和comments,必须写下解释。
INSERT INTO `table2` (comments,id,current_time,user_name)
VALUES ('текст пояснения',
SELECT id,current_time,user_name
FROM `table1` WHERE id=168)
像这样的东西,但它不起作用。
1 个回答