SQL server 增删改查语句
新增
insert into test.dbo.users (id,username,password)
values(1,'lisi',123),(2,'lisi'...,123);
insert into test.dbo.users (id,username,password) -- 将查询结果插入
select * from test.dbo.users;
删除...delete test.dbo.users where id=1
在sqlserver中delete的from是可以省略的。...创建表
create table teacher(
id int primary key,
name varchar(10) not null,
age int
)
删除表...select * from test.dbo.users -- 从大到小排序
order by id desc;
整篇文章是整个SQL Server基础的操作语句,熟练掌握即可基本进行维护与实施工作