0

I am having query as follows which will get multiple data at a time but I don't know how to write a stored procedure for this - can anyone help me?

In code I am writing this

string deleteSQL = "Select File_Data from tblachmaster WHERE Id IN (" + gvIDs.Substring(0, gvIDs.LastIndexOf(",")) + ")";

This instead of writing like this i have to use stored procedure to execute

This is my query

Select File_Data 
From tblachmaster 
Where Id IN (1,2,3, and so on);
4

1 回答 1

0
CREATE PROCEDURE myProc()    
BEGIN
 SELECT File_Data from tblachmaster WHERE Id IN (1,2,3, and so on);
END;
于 2011-04-25T08:03:58.223 回答