为什么我们在存储过程中使用if(@ propertyID0和@propertyID'''') [英] why we use if(@propertyID0 and @propertyID'''') in stored procedure

查看:161
本文介绍了为什么我们在存储过程中使用if(@ propertyID0和@propertyID'''')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请有人告诉我们为什么使用此条件以及if(@ propertyID<> 0和@ propertyID<""""""""""""""">
我想知道<> 0
的含义

请有人告诉...

Pls some one tell why we use this condition and what is the meaning of if(@propertyID<>0 and @propertyID<>'''''''')

i want to know the meaning of <>0


pl some one tell...

推荐答案

<> 0的含义.这意味着不等于0
meaning of <>0. it means does not equal to 0


使用这两个条件的目的是检查@propertyID中的值不等于零,以及@propertyID的值不能为空.

这意味着@propertyID的值可以为1,-1、2、3,但不能为0或为空字符串..


理想情况下,第二个条件应该是@ propertyID<>''''''
the purpose of using these two conditions is to check value inside @propertyID is not equal to zero as well as the value @propertyID should not be blank..

It means @propertyID can have values such as 1, -1,2,3 but not 0 or empty string..


Ideally second condtion should be @propertyID<>''''


这篇关于为什么我们在存储过程中使用if(@ propertyID0和@propertyID'''')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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