给你一个相对简单的题目,就一个表的问题
为所示交友表编写一个存储过程,用于对各种输入参数的不同组合进行查询
use Test
Go
create table dbo.t_friends(fid int,nickname varchar(50),gender char(1),birthday smalldatetime,height int,weight int)
Go
insert t_friends values (1023,'Celine Dion','F','1965-01-01',170,54)
insert t_friends values (1025,'Jane','F','1978-05-01',168,52)
insert t_friends values (1033,'Michael','M','1985-08-05','178',65)
insert t_friends values (1034,'Andy Ke','M','1980-06-01','168',61)
insert t_friends values (1042,'Darren Hayes','M','1972-06-12','174',66)
insert t_friends values (1051,'Tony Yang','M','1975-02-10',183,60)
insert t_friends values (1058,'Angel Yan','F','1982-11-05',167,50)
Go
select * from t_friends |