Re: type of a field

Поиск
Список
Период
Сортировка
От Duncan Adams (DNS)
Тема Re: type of a field
Дата
Msg-id 7DD34E6DF5CD1B4283DDAB96A855DCED2F32C5@vodabemail1.vodacom.co.za
обсуждение исходный текст
Ответ на type of a field  (ameen eetemadi <ameen78101@yahoo.com>)
Список pgsql-php
Hi

1 u will have to use alter table to change the tables name RTFM
2 then create the new table with the changed columns
3 then insert into <newtable> values (select oldcolumn as newcolumn, ect...
from <renamedtable>);

but i did not read u'r question correctly.

i would do steps 1 and 2 above and then write a function in php
that

select * from <renamed table>

and

insert into <newtable>


-----Original Message-----
From: ameen eetemadi [mailto:ameen78101@yahoo.com]
Sent: Tuesday, May 07, 2002 3:01 PM
To: pgsql-php@postgresql.org
Subject: [PHP] type of a field


I want to change the type of a field in postgres.
How can I do it ?

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

В списке pgsql-php по дате отправления:

Предыдущее
От: ameen eetemadi
Дата:
Сообщение: type of a field
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: type of a field