![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
sql server存储过程中怎样写if
展开全部
1
2
3
4
5
6
7
8
9
10
11
12
if a>b
Begin
print 'a'
End
Else if a<b
Begin
print 'b'
End
Else
Begin
print '代码'
End
if-else语法为,最好不要把begin end省略掉。否则,存储过程比较长可能会报语法错误
2
3
4
5
6
7
8
9
10
11
12
if a>b
Begin
print 'a'
End
Else if a<b
Begin
print 'b'
End
Else
Begin
print '代码'
End
if-else语法为,最好不要把begin end省略掉。否则,存储过程比较长可能会报语法错误
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |