SQL 错误:ORA-00904:: 标识符无效
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22195872/
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-01 01:14:36 来源:igfitidea点击:
SQL Error: ORA-00904: : invalid identifier
提问by Steffi
I am an SQL rookie and I would very much appreciate some assistance on this rather basic issue.
我是一个 SQL 新手,我非常感谢在这个相当基本的问题上提供一些帮助。
alter table OCEAN_ANTENNE_TEMP
add column ANT_TILT_M number(5) not null,
ANT_FSC_ANT number(4,1) default 0;
/
why is this query giving me this error:
为什么这个查询给我这个错误:
SQL Error: ORA-00904: : invalid identifier 00904. 00000 - "%s: invalid identifier"
SQL 错误:ORA-00904::无效标识符 00904。00000 -“%s:无效标识符”
回答by simplify_life
correct method is
正确的方法是
alter table OCEAN_ANTENNE_TEMP
add ( ANT_TILT_M number(5) not null,
ANT_FSC_ANT number(4,1) default 0);
回答by vhadalgi
alter table OCEAN_ANTENNE_TEMP
add (ANT_TILT_M number(5) default 0 not null,
ANT_FSC_ANT number(4,1) default 0 not null);