SQL 如果需要判断bool类型

 

 

and (@isViewOthers = 1 or userprofileID = @UserprofileID)

///////////////////////////////////////////////////////////////////

if @isviewother = 1

...

else 

...

posted @ 2020-03-11 09:57  b小青青  阅读(1177)  评论(0编辑  收藏  举报