Re: Sobre ALTER TABLE

From: Jaime Casanova <systemguards(at)yahoo(dot)com>
To: pgsql-es postgresql <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Sobre ALTER TABLE
Date: 2005-01-19 20:06:19
Message-ID: 20050119200619.38625.qmail@web50010.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

--- Ariel Romero <aromero(at)cenatav(dot)co(dot)cu> escribió:
>
> Hola lista:
>
> Tengo un problema con alter table para quitarle el
> oid
>
> 1-ALTER TABLE tema SET WITHOUT OIDS;
>
> y me da el error: ERROR: parser: parse error at or
> near "SET" at character 18.
>
??? seguro ???
eso a mi me funciona bien.

> Al igual que para cambiar el tipo de dato de una
> columna a serial
>
> 2-ALTER TABLE tema ALTER COLUMN id_tema SET type
> int8;
>
> me da el error : ERROR: parser: parse error at or
> near "type" at character 43
>
Bueno esto es por que no es SET TYPE solo TYPE.
ALTER TABLE tema ALTER COLUMN id_tema TYPE int8;

atentamente,
Jaime Casanova

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2005-01-19 20:15:18 Re: Sobre ALTER TABLE
Previous Message Patolin . 2005-01-19 19:11:19 RE: Consulta sobre tipo de dato