在Oracle表中添加列(Add column in Oracle table)

我试图将XMLType列添加到表中,但它返回一个错误。 为什么?

这是查询:

alter table TEST_ID add column xml_column xmltype;

它返回错误:

[SQL] alter table TEST_ID add column xml_column xmltype [Err] ORA-00904: : invalid identifier

I'm trying to add an XMLType column into a table, but it returns an error. Why?

This is the query:

alter table TEST_ID add column xml_column xmltype;

It returns the error:

[SQL] alter table TEST_ID add column xml_column xmltype [Err] ORA-00904: : invalid identifier

最满意答案

你不需要那里的“列”字,所以它是:

ALTER TABLE test_id ADD xml_column xmltype;

You don't need the "column" word in there, so it's:

ALTER TABLE test_id ADD xml_column xmltype;

在Oracle表中添加列(Add column in Oracle table)

我试图将XMLType列添加到表中,但它返回一个错误。 为什么?

这是查询:

alter table TEST_ID add column xml_column xmltype;

它返回错误:

[SQL] alter table TEST_ID add column xml_column xmltype [Err] ORA-00904: : invalid identifier

I'm trying to add an XMLType column into a table, but it returns an error. Why?

This is the query:

alter table TEST_ID add column xml_column xmltype;

It returns the error:

[SQL] alter table TEST_ID add column xml_column xmltype [Err] ORA-00904: : invalid identifier

最满意答案

你不需要那里的“列”字,所以它是:

ALTER TABLE test_id ADD xml_column xmltype;

You don't need the "column" word in there, so it's:

ALTER TABLE test_id ADD xml_column xmltype;