On Fri, 20 Apr 2012 19:34:37 +0100 (BST) Alejandro Carrillo <faster...@yahoo.es> wrote:
> Porq sencillamente no haces un create or replace view? > > Para borrar una columna no sirve, la unica solucion creo que es borrar la vista y crearla de nuevo. http://www.postgresql.org/docs/9.1/static/sql-createview.html "CREATE OR REPLACE VIEW is similar, but if a view of the same name already exists, it is replaced. The new query must generate the same columns that were generated by the existing view query (that is, the same column names in the same order and with the same data types), but it may add additional columns to the end of the list. The calculations giving rise to the output columns may be completely different." Basicamente permite agregar columnas al final pero las que existen no pueden cambiar....al menos el nombre, tipo de datos y orden en que estan definidas. Saludos Rodrigo > > > >________________________________ > > De: felipe guzman <felipeguzm...@gmail.com> > >Para: Ayuda <pgsql-es-ayuda@postgresql.org> > >Enviado: Viernes 20 de abril de 2012 13:13 > >Asunto: [pgsql-es-ayuda] Como eliminar una columna de una vista? > > > > > >Señores si les escribo es por que he estado buscando constantemente > >como eliminar una columna de una vista en postgres, ello debido a > >que he intentado con todos los manuales que he encontrado al igual > >que la documentación oficial > >http://www.postgresql.org/docs/devel/static/sql-alterview.html > > > > > >Quedo muy atento a sus comentarios y experencias > >Saludos > > > >-- > > > > > > - Enviado a la lista de correo pgsql-es-ayuda (pgsql-es-ayuda@postgresql.org) Para cambiar tu suscripci�n: http://www.postgresql.org/mailpref/pgsql-es-ayuda