对表的一些操作(insert , update ...)

插入数据:

对所有的数据项都插入数据

insert into classes values(数据值,数据值,etc)

对指定的数据项插入数据

insert into classes(数据项,etc) values(数据值,etc)

更新数据

update classes set 数据项= 数据值 where (查询条件)

对表就行查看

select *from 表 where 查询条件

select 数据项 as 别名 from  表 where 查询条件

不想对重复的数据进行查看

select distinct 数据项  from 表;

posted @ 2020-01-07 16:41  不识人间花火  阅读(298)  评论(0编辑  收藏  举报