mysql操作的制作备份表问题
-
SQL code
select * into info_backup from info;
再制作备份表的时候出现undecalared variable的情况,这是什么原因呢?
语法错误,格式应该如下。
insert into info_backup select * from info;
-
SQL code
insert into info_backup select * from info;
mysql 不支持 select into
代替的办法是
Create table info_backup (Select * from info)