Is it possible to do this in a single query:
CREATE TABLE foo(bar INTEGER);
COMMENT ON foo IS 'my foo table';
COMMENT ON bar IS 'my bar column of the foo table';
Something like for the constraints:
CREATE TABLE foo
( bar INTEGER COMMENT IS 'my bar column of the foo table'
, COMMENT IS 'my foo table'
);
?
No, COMMENT is an Oracle statement and has to be issued seperately to the
CREATE TABLEcommand.There is a similar question asked on the Oracle Forums here.