CREATE TABLE T_Person3(Id int NOT NULL,Name nvarchar(50),Age int NULL) DROP TABLE T_Person3 INSERT INTO Person_1(Number,Name,Age) VALUES(4,'xxxxxxx',20) SELECT newid() UPDATE Person_1 set Age=30 UPDATE Person_1 set Name='liming' where Age>=30 select * from Person_1 select Name from Person_1 select * from Person_1 where Age>20 select GETDATE() select @@version select 100-20 as sub select COUNT(*) from Person_1 select MAX(Number) from Person_1 select AVG(Number) from Person_1 select * from Person_1 order by Age select * from Person_1 order by Age ,Name DESC select * from Person_1 where Name LIKE '_ieniyimiao' select * from Person_1 where Name LIKE '%i%' select null+1 select * from Person_1 where Name is not null select * from Person_1 where Age in(20,18,30) select * from Person_1 where Age between 1 and 22 select Age,count(*) from Person_1 group by Age select top 3 *from Person_1 order by Age DESC
时间: 2024-10-10 02:49:55