Create Procedure Sp_instAdminmaster]
(@Name varchar(20),@FatherName varchar(20),@Email_Id varchar(20),@Address nvarchar(100),@City varchar(20),@State varchar(20),@Qualification varchar(30),@contactNo varchar(10),@Date date,
@Remarks varchar(150),@Type varchar(20),@Fee money,@ClassName nvarchar(20),@Yearly money,@Halfyearly1 money,
@Halfyearly2 money,@Quaterly1 money,@Quaterly2 money,@Quaterly3 money,@Quaterly4 money,@January money,
@February money,@March money,@April money,@May money,@June money,@July money,
@August money,@September money,@October money,@November money,@December money)
AS
BEGIN
Insert into AdmissionMaster(Name,FatherName,Email_Id,Address,City,State,Qualification,contactNo,Date,Remarks,Type,Fee,ClassName)
values (@Name,@FatherName,@Email_Id,@Address,@City,@State,@Qualification,@contactNo,
@Date,@Remarks,@Type,@Fee,@ClassName);
declare @Id int
Select @Id as Id from AdmissionMaster
insert into tblAdmissionDetails(Id,Yearly,Halfyearly1,Halfyearly2,Quaterly1,Quaterly2,Quaterly3,Quaterly4,
January,February,March,April,May,June,July,August,September,October,November,December)
values(@Id,@yearly,@Halfyearly1,@Halfyearly2,@Quaterly1,@Quaterly2,@Quaterly3,@Quaterly4,@January,@February,@March,
@April,@May,@June,@July,@August,@September,@October,@November,@December)
END
更改
Select @Id as Id from AdmissionMaster
至
SELECT @Id=IDENT_CURRENT('AdmissionMaster');
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。