2019年11月26日
摘要: insert into用于向表中插入新的一行数据 insert into user values('张三','男','20');不指定列,插入一行数据 insert into user(name,gender,age)values('张三','男','20');指定列,插入一行数据 经常碰到需要从一 阅读全文
posted @ 2019-11-26 17:05 lemon_fjl 阅读(4105) 评论(0) 推荐(0) 编辑
  2019年9月18日
摘要: 一般来说,sql中as都是后面跟一个别名。例如 select name as 姓名 from user; 用其他表做基表创建视图或新表,常用于备份数据。 例如 create table user_1 as (select * from user); 在备份表的时候,可以新增列并赋默认值使用。例如 c 阅读全文
posted @ 2019-09-18 10:35 lemon_fjl 阅读(950) 评论(0) 推荐(0) 编辑