SQL ORA-01741: 非法的零长度标识符
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25337722/
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
ORA-01741: illegal zero-length identifier
提问by Purple
Hi I am using a delete query in my shell script and I am facing this issue.
嗨,我在我的 shell 脚本中使用了一个删除查询,我正面临这个问题。
delete from WHITELIST_CLI where filecode like'%Line_Index_condense%';
Error:
错误:
ERROR:
ORA-01741: illegal zero-length identifier
回答by Gordon Linoff
Here is some information on the error:
以下是有关错误的一些信息:
ORA-01741: illegal zero-length identifier
Cause: An attempt was made to use two double quotes ("") as an identifier. An identifier must be at least one character long.
ORA-01741: 非法的零长度标识符
原因:试图使用两个双引号 ("") 作为标识符。标识符必须至少有一个字符长。
Your query has nothing of the sort. This may be an interaction between ksh and Oracle. Or you may have used double quotes when you mean single quotes. Or, you may have oversimplified the query when you posted the question. Or another query may be the issue.
您的查询没有任何内容。这可能是 ksh 和 Oracle 之间的交互。或者,当您指的是单引号时,您可能使用了双引号。或者,您在发布问题时可能过于简化了查询。或者另一个查询可能是问题所在。
Hereis a simple example of the error on SQL Fiddle.
这是 SQL Fiddle 错误的简单示例。