如何将 oracle 变量设置为 null?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19283170/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 01:59:57  来源:igfitidea点击:

How can I set an oracle variable to null?

oraclevariablesstored-proceduresnull

提问by Arun Vijay

How to set a variable in oracle procedure to null? I want to do this because the variable is in a cursor, so needs to set to null for every iteration. Thanks in advance

如何将oracle程序中的变量设置为null?我想这样做是因为变量在一个游标中,所以每次迭代都需要设置为 null。提前致谢

回答by a_horse_with_no_name

Just assign the "value" null:

只需分配“值”为空:

variable := null;