码迷,mamicode.com
首页 > 数据库 > 详细

SQL语句 增删改查

时间:2017-10-23 17:59:10      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:sql   from   set   nbsp   sql语句   val   delete   value   表名   

增:

insert into 表名 values(‘阿紫‘,‘0‘,‘回族‘

insert into 表名 (sex,[name],nation) values (‘1‘,‘阿碧‘,‘汉族‘)

删:

delete from 表明 where nation = ‘阿紫‘

改:

update 表名 set nation = ‘汉族‘,sex = 1 where ids = 6  

查:

select * from 表名  where nation=‘汉族‘         

or(或)

and(并)

SQL语句 增删改查

标签:sql   from   set   nbsp   sql语句   val   delete   value   表名   

原文地址:http://www.cnblogs.com/m110/p/7717666.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!