I am adding a column in oracle and I also want to add comments to describe the column. Here's my syntax:
ALTER TABLE TableName ADD (ColumnName VARCHAR(10) null COMMENT ON tableName.columnName IS 'some comments');
Her's the error:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
*Cause:
*Action:
I will appreciate any help.
The syntax is well documented: http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_4009.htm
comment on column schema.table.column is 'some comment';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With