常用的查询、删除、增加、更新的SQL Server语句

归纳一些常用的SQL Server数据库语句

查询

select
 * 		 //查询字段
from  
Table_1 tb1, Table_2 tb2  //表名
where
tb1.Table_1_ID=tb2.Table_1_ID	//查询条件
order by  tb1.Table_Date  DESC 	//排序方式,倒叙  DESC  顺序 ASC

删除

delete from table where ID='101'

增加

insert into table(字段名,字段名)  value('值','值')

更新

update  table1  set  字段='值' where  ID='111'
发布了6 篇原创文章 · 获赞 6 · 访问量 177

猜你喜欢

转载自blog.csdn.net/CN_Orange_/article/details/104651938