如何为单个存储过程生成动态where条件 [英] How to generate dynamic where condition for a single stored procedure

查看:77
本文介绍了如何为单个存储过程生成动态where条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为单个存储过程生成动态where条件并从asp.net后面的代码传递....

How to generate Dynamic where condition for single stored procedure and pass from code behind asp.net....

推荐答案





参考下面的文章。

在存储过程中构建动态SQL [ ^ ]



在那篇文章中,作者还提到了存储过程中的动态sql查询。因此,从应用程序传递必要的参数,这些参数将用作存储过程中的where条件。



希望它有所帮助。
Hi,

refer the below article.
Building Dynamic SQL In a Stored Procedure[^]

In that article, author has mentioned dynamic sql queries in stored procedure also. So, from the application pass the necessary parameters, which will used as the where conditions in stored procedures.

hope it helps.


这篇关于如何为单个存储过程生成动态where条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆