SQL语句基础(一)增删改查

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_35008719/article/details/74937201

1、增
create user 用户名 identified by 密码
create table 表名(字段名 类型 约束,字段名 类型 约束,……);
insert into 表名 values(——)
insert into 表名(字段名)values(–)
2、删
delete from 表名 where 字段=数据
drop table 表名 ;
drop user xxx;
3、改
update 表名 set 字段=数据 where 字段=数据
alter——–
4、查
select * from 表名 where –
(having — group by —order by —- )
嵌套查询(in)

备注:查的详细讲解,请听下回分解

猜你喜欢

转载自blog.csdn.net/qq_35008719/article/details/74937201