如何为以下查询实现存储过程
我有如下查询,它将一次获取多个数据,但我不知道如何为此编写存储过程 - 有人可以帮助我吗?
在代码中,我正在写这个
string deleteSQL = "Select File_Data from tblachmaster WHERE Id IN (" + gvIDs.Substring(0, gvIDs.LastIndexOf(",")) + ")";
,而不是像这样写,我必须使用存储过程来执行
这是我的查询
Select File_Data
From tblachmaster
Where Id IN (1,2,3, and so on);
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);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)