CREATE PROCEDURE [添加会员] AS if exists (select 姓名 from 会员资料 where 姓名='proc_stud') drop procedure proc_stud go create procedure proc_stud @num char(9) @name nchar(5) @style nchar(2) @id char(18) @phone char(11) @time smalldatetime @score smallint as insert into 会员资料(会员卡号,姓名,会员类型,身份证号,联系电话,注册时间,积分) values(@num,@name,@style,@id,@phone,@time,@score) go