create table studen(
ID int primary key not null,
name1 varchar(10) not null,
age int null
)
select * from studen;--查询表的所有信息
select ID,age from [dbo].[studen];--查询ID和age列的信息
select distinct ID from [dbo].[studen];--查询ID中不重复的数据
select top 2 *from [dbo].[studen];--查询前三行数据