把表2的id打印5380的数据都插入到表1中 下面这样写报错了 这是为什么?
两张表的结构都是一模一样的 有没有简单的写法?ERROR 1241 (21000): Operand should contain 1 column(s)
mysql> insert into table1(content,time,star,source,date) select (content,time,star,source,date) from table2 WHERE id > 5380;
把表2的id打印5380的数据都插入到表1中 下面这样写报错了 这是为什么?
两张表的结构都是一模一样的 有没有简单的写法?ERROR 1241 (21000): Operand should contain 1 column(s)
mysql> insert into table1(content,time,star,source,date) select (content,time,star,source,date) from table2 WHERE id > 5380;
4 回答1.5k 阅读✓ 已解决
8 回答1.3k 阅读
3 回答987 阅读✓ 已解决
3 回答1.1k 阅读✓ 已解决
3 回答1.9k 阅读
2 回答1.7k 阅读
1 回答904 阅读✓ 已解决
insert into table1 select * from table2 where id > 5380
这样试试