|
Let's put it this way: I combined the selected image IDs into a string in the background of the page, separated by commas, such as: "1,2,3,4,6,7,8,"
This is passed to the stored procedure. The stored procedure splits the string of IDs, and then the name field is "tested" based on these IDs.
How to write specific stored procedures
-------------------------------------------------- ---
@ s = "1,2,3,4,6,7,8"
update YourTable set name = 'Test' where charindex (',' + rtrim (id) + ',', ',' + @ s + ',')> 0 |
|