T-SQL Syntax
Database
2
Posts
2
Posters
0
Views
1
Watching
-
how can i save the value of a field into a parameter in T-SQL?what i wrote is- Create Procedure a_c @C_Name varchar(100), as if exists( select id as 'ID' from ABC where C_Name = @C_Name) begin ---- end else begin --- end go is this syntax correct?and should i declare 'ID'and how can i do it?
-
how can i save the value of a field into a parameter in T-SQL?what i wrote is- Create Procedure a_c @C_Name varchar(100), as if exists( select id as 'ID' from ABC where C_Name = @C_Name) begin ---- end else begin --- end go is this syntax correct?and should i declare 'ID'and how can i do it?