首页 > 数据库技术 > 详细

sql语句与数据库2

时间:2016-08-19 21:59:21      阅读:220      评论:0      收藏:0      [点我收藏+]

增加数据

insert into wyx(xh,nl,xb,sfzh,zcrq)values(0422,28,男,210623198711111111,2016-8-19);

删除数据

delete from wyx where name=();

 修改数据

update 表名 set name=‘liudehua‘ where  条件

查询数据

select distinct xm,xb count(*) from 表名 where xh in () and name not in () group by bj having count (*)>5 order by  xm desc limit(0,5);

select * from A inner join B on A.xh=B.xh inner join C on C.xh=B.xh where 条件;

select * from A left join B on A.xh=B.xh where 条件;

select * from A right join B on A.xh=B.xh where 条件;

sql语句与数据库2

原文:http://www.cnblogs.com/wangyinxu/p/5786109.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!