pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHelp: URGENT!
5+ messages / 5 participants
[nested] [flat]
* Help: URGENT!
@ 2002-07-02 20:56 Robson <robson-martins@bol.com.br>
0 siblings, 1 reply; 5+ messages in thread
From: Robson @ 2002-07-02 20:56 UTC (permalink / raw)
To: pgsql-admin
Hello,
Exist field type date, question:
With format date 'dd/mm/yyyy' ?
Regards,
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Help: URGENT!
@ 2002-07-03 07:52 Nils Höglund <nils@naqua.se>
parent: Robson <robson-martins@bol.com.br>
0 siblings, 0 replies; 5+ messages in thread
From: Nils Höglund @ 2002-07-03 07:52 UTC (permalink / raw)
To: Robson <robson-martins@bol.com.br>; +Cc: pgsql-admin
> Exist field type date, question:
>
> With format date 'dd/mm/yyyy' ?
I'm not sure what you wan't to do.
To convert and format dates in postgresql you can use to_date()- or
to_char()-functions.
http://www.postgresql.org/idocs/index.php?functions-formatting.html
--
/Nils Höglund, Naqua KB
E-mail: nils@naqua.se
Web: http://www.naqua.se/
Home Phone: +46 (0)18 30 09 19
Cellular Phone: +46 (0)709 91 97 65
Address: Nya Valsätrav. 26 B
SE-756 46
Uppsala, Sweden
^ permalink raw reply [nested|flat] 5+ messages in thread
* Help---- Urgent
@ 2003-12-11 05:19 Chitta Ranjan Mishra <c_r_mishra@yahoo.co.in>
0 siblings, 2 replies; 5+ messages in thread
From: Chitta Ranjan Mishra @ 2003-12-11 05:19 UTC (permalink / raw)
To: pgsql-admin
Dear Sir,
I wnat to alter the size of one of the column of a
table. How to do this in Postgres ? Plz help me.
It's very urgent...
I tried with the following syntax :
but it failed....
alter table tablename modify(coumnname varchar(25));
it's very urgnet...plz reply soon..
Thanking you,
Regds
C.R.Mishra
________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Help---- Urgent
@ 2003-12-11 15:24 Contact <contact@ar-sd.net>
parent: Chitta Ranjan Mishra <c_r_mishra@yahoo.co.in>
1 sibling, 0 replies; 5+ messages in thread
From: Contact @ 2003-12-11 15:24 UTC (permalink / raw)
To: Chitta Ranjan Mishra <c_r_mishra@yahoo.co.in>; pgsql-admin
Create a new column
alter <tablename> add column <newcolname> varchar(25);
Then copy the old column into the new column:
update <tablename> set <newcolname> = <oldcolname>;
Drop the last column:
alter <tablename> drop column <oldcolname>;
Rename the column:
alter <tablename> rename column <newcolname> to <oldcolname>;
Take care for INDEXES if there are any.
This should do it.
Best regards.
----- Original Message -----
From: "Chitta Ranjan Mishra" <c_r_mishra@yahoo.co.in>
To: <pgsql-admin@postgresql.org>
Sent: Thursday, December 11, 2003 7:19 AM
Subject: [ADMIN] Help---- Urgent
> Dear Sir,
> I wnat to alter the size of one of the column of a
> table. How to do this in Postgres ? Plz help me.
> It's very urgent...
>
> I tried with the following syntax :
> but it failed....
>
> alter table tablename modify(coumnname varchar(25));
>
> it's very urgnet...plz reply soon..
>
> Thanking you,
> Regds
> C.R.Mishra
>
>
>
>
> ________________________________________________________________________
> Yahoo! India Mobile: Download the latest polyphonic ringtones.
> Go to http://in.mobile.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Help---- Urgent
@ 2003-12-11 15:42 Andrei Bintintan <klodoma@ar-sd.net>
parent: Chitta Ranjan Mishra <c_r_mishra@yahoo.co.in>
1 sibling, 0 replies; 5+ messages in thread
From: Andrei Bintintan @ 2003-12-11 15:42 UTC (permalink / raw)
To: Chitta Ranjan Mishra <c_r_mishra@yahoo.co.in>; pgsql-admin
Create a new column
alter <tablename> add column <newcolname> varchar(25);
Then copy the old column into the new column:
update <tablename> set <newcolname> = <oldcolname>;
Drop the last column:
alter <tablename> drop column <oldcolname>;
Rename the column:
alter <tablename> rename column <newcolname> to <oldcolname>;
Take care for INDEXES if there are any.
This should do it.
Best regards.
----- Original Message -----
From: "Chitta Ranjan Mishra" <c_r_mishra@yahoo.co.in>
To: <pgsql-admin@postgresql.org>
Sent: Thursday, December 11, 2003 7:19 AM
Subject: [ADMIN] Help---- Urgent
> Dear Sir,
> I wnat to alter the size of one of the column of a
> table. How to do this in Postgres ? Plz help me.
> It's very urgent...
>
> I tried with the following syntax :
> but it failed....
>
> alter table tablename modify(coumnname varchar(25));
>
> it's very urgnet...plz reply soon..
>
> Thanking you,
> Regds
> C.R.Mishra
>
>
>
>
> ________________________________________________________________________
> Yahoo! India Mobile: Download the latest polyphonic ringtones.
> Go to http://in.mobile.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2003-12-11 15:42 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-07-02 20:56 Help: URGENT! Robson <robson-martins@bol.com.br>
2002-07-03 07:52 ` Nils Höglund <nils@naqua.se>
2003-12-11 05:19 Help---- Urgent Chitta Ranjan Mishra <c_r_mishra@yahoo.co.in>
2003-12-11 15:24 ` Re: Help---- Urgent Contact <contact@ar-sd.net>
2003-12-11 15:42 ` Re: Help---- Urgent Andrei Bintintan <klodoma@ar-sd.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox