Ayuda con el comando REPLACE TABLE

From: "Juan Carlos Badillo Goy" <badillo(at)cav(dot)desoft(dot)cu>
To: "Jaime Casanova" <systemguards(at)gmail(dot)com>
Cc: <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Ayuda con el comando REPLACE TABLE
Date: 2005-07-11 22:36:25
Message-ID: 004b01c58668$fabba750$2401c0c0@badillo
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Saludos, necesito ayuda con el comando REPLACE TABLE, necesito alterar la
estructura de una tabla y no encuenro como hacerlo, este es el código del
como estoy intentando hacerlo.

replace TABLE tb_carpetas_compartidas (
id_carpeta INTEGER NOT NULL,
compartida_a VARCHAR(50) NOT NULL,
permiso INTEGER NOT NULL,
CONSTRAINT pk_tb_carpetas_compartidas PRIMARY KEY(id_carpeta,
compartida_a)
);

error que emite:
ERROR: syntax error at or near "replace" at character 1

Cualquier ayuda es buena.

----- Original Message -----
From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: "Juan Carlos Badillo Goy" <badillo(at)cav(dot)desoft(dot)cu>
Cc: <pgsql-es-ayuda(at)postgresql(dot)org>
Sent: Monday, July 11, 2005 2:28 PM
Subject: Re: [pgsql-es-ayuda] Ayuda con el comando ALTER

On 7/11/05, Juan Carlos Badillo Goy <badillo(at)cav(dot)desoft(dot)cu> wrote:
> Saludos a todos...
>
> Cómo puedo modificar una FUNCTION o una VIEW, utilizando el comando
ALTER...
>

existe el comando ALTER VIEW? la verdad no recuerdo y no tengo ni el
manual ni una instalacion de postgres a la mano.

prueba CREATE OR REPLACE {VIEW|FUNCTION}

--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

---------------------------(fin del mensaje)---------------------------
TIP 10: visita nuestro canal de IRC #postgresql-es en irc.freenode.net

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jairo Sánchez 2005-07-11 22:43:46 Re: Ayuda con el comando REPLACE TABLE
Previous Message Jaime Casanova 2005-07-11 22:29:42 Re: Ayuda con el comando REPLACE TABLE