Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create table with comment 2

Status
Not open for further replies.

mjesus

Technical User
Joined
Jul 23, 2007
Messages
1
Location
BR
Is that possible CREATE TABLE already with table and/or column comment?
If so how?
 
As far as I know this is not possible, there is no field in the table "pg_catalog"."pg_tables" that would seem to allow having a comment.

 
you can comment objects


but not with the create statement

CREATE TABLE "test"
(
"test" CHAR(36) NOT NULL,
PRIMARY KEY ("test")
);

COMMENT ON TABLE "test" IS 'this is realy test table';
COMMENT ON COLUMN "test"."test" IS 'this is the test column of the test table';
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top