您的位置:首页 > 其它

对表中数据的操作

2015-08-19 21:25 218 查看
--向表中添加数据
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 子句(查询条件查询内容的属性)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: