| From: | "dAnkO Vera" <dankovera(at)gmail(dot)com> |
|---|---|
| To: | pgsql-es-ayuda(at)postgresql(dot)org |
| Subject: | cambiar orden de columnas de una tabla.? |
| Date: | 2007-01-10 14:29:04 |
| Message-ID: | 7fd39d840701100629h5d5e14fduf549b442c77b3b4b@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
hola a todos
tengo la sigte duda.
si es posible alterar el orden de las columnas ya creadas en una tabla..
me explico:
*CREATE* TABLE ciudad
(
ciudad varchar(20) NOT NULL,
nombre varchar(60) NOT NULL,
region char(2),
estado char(2) NOT NULL,
usuario_creacion varchar(10) NOT NULL,
fecha_creacion timestamp NOT NULL,
usuario_modificacion varchar(10),
fecha_modificacion timestamp,
CONSTRAINT pk_ciudad PRIMARY KEY (ciudad)
)
*por.....ejemplo donde dejo las columna fecha juntas..*
*( y entendiendose que tengo datos en la tabla)*
CREATE TABLE ciudad
(
ciudad varchar(20) NOT NULL,
nombre varchar(60) NOT NULL,
region char(2),
estado char(2) NOT NULL,
fecha_modificacion timestamp,
fecha_creacion timestamp NOT NULL,
usuario_creacion varchar(10) NOT NULL,
usuario_modificacion varchar(10),
CONSTRAINT pk_ciudad PRIMARY KEY (ciudad)
)
agracedio desde ya
dAnkO
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Felipe Amezquita | 2007-01-10 14:30:56 | ctid error |
| Previous Message | Dimas Ayala | 2007-01-10 14:27:24 | Re: Gracias |