Stored Proce

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans

Q&A for music historians, critics, and fans

CREATE TABLE #Students (
StudentId int,
FirstName varchar(20),
LastName Varchar(20),
Email Varchar(20),
Gender Char(1),
PNo int constraint mob_uq unique,
Address Varchar(30),
BranchId int,
constraint uq_Add unique(Address)
)

insert into #Students values (101,'Deeps','Gurr','deeps@gur.com','F',232323,'Peets street',501);
insert into #Students values (102,'Anu','Mer','Anu@Mer.com','F',546789,'Hello street',501);
insert into #Students values (103,'Apps','Gurr','Apps@gur.com','F',546343,'Velo street',502);
insert into #Students values (104,'Sur','Gur','Surn@gur.com','F',762323,'Indiana street',501);


begin transaction
delete #Students where StudentId = 104;
select * from #Students;
print @@trancount;

rollback

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results