From: | BenLaKnet <benlaknet(at)icqmail(dot)com> |
---|---|
To: | Rod Taylor <rbt(at)rbt(dot)ca> |
Cc: | luiz(at)klais(dot)com(dot)br, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Insert a description while creating a table |
Date: | 2003-08-13 12:31:58 |
Message-ID: | 3F3A2FBE.2050408@icqmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
create table test (
id serial ,
name varchar(50)
);
COMMENT ON TABLE "test"
IS 'MySQL table
id_training_form ... id_form_unique';
comment on COLUMN "test"."id"
is 'greigjreoigjreigjore iojrjiogre' ;
Doc postgresql comment
Rod Taylor wrote:
>On Wed, 2003-08-13 at 07:56, luiz(at)klais(dot)com(dot)br wrote:
>
>
>>Hi,
>>
>>I want to insert descriptions at the columns of my tables but without
>>using the command COMMENT ON. I want to do it together with the table
>>creation. Is that possible?
>>
>>I wanna do something like this:
>>
>>create table test (
>> id serial 'Descripitions about ID',
>> name varchar(50) 'Descriptions about NAME'
>>);
>>
>>
>
>Probably not going to happen in the backend.
>
>However, you should be able to accomplish that with a little bit of Perl
>to pre-process the SQL.
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Christoph Haller | 2003-08-13 12:54:59 | Re: Insert a description while creating a table |
Previous Message | Benoît Bournon | 2003-08-13 12:24:36 | Re: Insert a description while creating a table |