开发者

how can i initialize an stored procedures IN parameter to a default value?

开发者 https://www.devze.com 2023-01-01 14:58 出处:网络
when this stored procedure executes without this parameter, stored procedure should use the d开发者_运维技巧efault value and if this parameter is assigned to a value, stored procedure should execute b

when this stored procedure executes without this parameter, stored procedure should use the d开发者_运维技巧efault value and if this parameter is assigned to a value, stored procedure should execute by assigned value.


Declare a variable, say myVar. Check if the parameter is null. If it is not null you assign it to myVar otherwise you assign the default value.


You can't, that's why it's not mentioned in the documentation.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号