sqlite3 使用记录

来源:互联网 发布:mac系统钥匙串密码 编辑:程序博客网 时间:2024/06/06 00:20
1:依据已有表创建一个新表
create table student6 as select * from student where 1=2;
如果省略where 1=2;则新表不仅拥有已有表的结构,也拥有了已有表的数据。
2:依据已有表插入数据
insert into student6 select * from student;
0 0
原创粉丝点击