create procedure ins_score
@GDno char(10),----GD表名
@stdno int-----学生学号
--......................................
--用IF语句判断:如果在@GDno表内有学号为@stdno的字段记录
as
begin
select * from GDno
where 学号=@stdno--.............
end
else
print '没有该学生的记录!'
要比较就直接比较!
eg:@x>@y