100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > mysql中的select into 与insert into语句用于备份数据

mysql中的select into 与insert into语句用于备份数据

时间:2018-08-16 19:00:07

相关推荐

mysql中的select into 与insert into语句用于备份数据

sql中的select *into new_table from old_table和insert into new_table (id1,name1)select (id,name) from old_table 用于将一个表中的数据备份到另一个表中。

不过,mysql不支持select *into 语句,可以用

另一种方式代替:

create table table2 (select *from table1)

select *into语句自动创建新表,insert into语句是要提前创建好新表.

相关链接1

相关链接2

相关链接3

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。