Stored Procedure for Updating a Column in Sql Server -


I need to update the column with multiple values ​​

  update table 1 Set column 1 = (Select table from table 2 where table 1.column0 = table2.coulmn) Is any generalized stored procedure for a requirement like above? 

Creating a statement as a string and "executing" statement, I do not know about one Usually, "execution" is contraindicated because it is a potential injection attack point.


Comments

Popular posts from this blog

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

iphone - How do I make a UIPickerView in a UIActionSheet -