如果参数值为null,如何编写存储过程 [英] how to write stored procedure if parameters value is null

查看:74
本文介绍了如果参数值为null,如何编写存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我有五个参数.
它们是地址","jobterm","jobindu","minsal","maxsal".


如果我所有的参数值都为null或某些参数为null或所有参数都不为null或一个或多个null中的任何一个,则我将根据搜索结果检索数据.

解决方案

看看这篇文章:

http://weblogs.asp.net/rmclaws/archive/2004/02/18/75381.aspx [ ^ ]


hi i have five parameters.
those are "address","jobterm","jobindu","minsal","maxsal".


if all of my parameters value are null or else some parameters are null or all parameters are not null or if any of one or more null then i retrieve data based on my search.

how can i write stored procedure for this.

解决方案

Take a look at this article:

http://weblogs.asp.net/rmclaws/archive/2004/02/18/75381.aspx[^]


这篇关于如果参数值为null,如何编写存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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