首页 > 其他 > 详细

对表中数据的操作

时间:2015-08-19 23:24:04      阅读:347      评论:0      收藏:0      [点我收藏+]
--向表中添加数据
insert into Table_1(电话,成绩) values(2000101,12)
--修改表中的数据
update Table_1 set 电话=12138 where 电话=2000101
--删除表中的数据
delete from Table_1 where 电话=12138
--删除表中所有数据
truncate table Table_1
--查询语句
select select_list  from table_list  where search_conditions
group by group_by_list
having search_conditions 
order by order_list 
--选择所有列
select*from Table_1
--特定列
select xh,xm from Table_1
--top子句
select top 2* from Table_1 -- 查询stu里前2行数据

限制返回到结果集中的行数
--使用表别名
--表名 as 表别名
--where 子句(查询条件查询内容的属性)

 

对表中数据的操作

原文:http://www.cnblogs.com/liuyudong0825/p/4743503.html

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