Reputation: 79235
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'
);
?
Upvotes: 2
Views: 3656
Reputation: 51
NO.. you cannot include Comments while defining the Objects.. you can do it once the object is created..
Upvotes: 0