adspace
How to write stored procedure to update the data in 10
tables
Answer Posted / jaipal
CREATE PROCEDURE <<procName>>
(
@param1 varchar(20),
@param2 varchar(20)
)
AS
UPDATE <<tableName1>> SET <<colName1>> = @param1 WHERE
<<colName2>> = @param2
UPDATE <<tableName1>> SET <<colName1>> = @param1 WHERE
<<colName2>> = @param2
..
..
..
..
UPDATE <<tableNameN>> SET <<colName1>> = @param1 WHERE
<<colName2>> = @param2
| Is This Answer Correct ? | 6 Yes | 7 No |
Post New Answer View All Answers
List out the different types of locks available in sql server?
How can I check that whether automatic statistic update is enabled or not?
What is the difference between for xml raw and for xml auto?
What is in place upgrade in sql server?
What is sql server query analyzer?
What is acid mean in sql server?
What are the different SQL Server Versions you have worked on?
How do I find query history in sql server?
How to connect php with different port numbers?
How to convert numeric expression data types using the cast() function?
Can we shrink data file in sql server?
When should you use an instead of trigger?
What are the kinds of subquery?
How efficient you are in oracle and SQL server?
What is self contained sub query?