Re: Ordenar Columnas

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Luis A(dot) Zevallos Cárdenas <lzevallos(at)lobosistemas(dot)com>
Cc: Jorge Diaz <jorge(dot)diaz(dot)t(at)gmail(dot)com>, Giorgio PostgreSQL <giorgio(dot)pgsql(at)gmail(dot)com>, PostgreSQL <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Ordenar Columnas
Date: 2009-07-13 03:13:24
Message-ID: 20090713031324.GB6207@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Luis A. Zevallos Cárdenas escribió:

> select attrelid, attname, attnum from pg_attribute where attname like
> 'pais%' and attrelid = 18371

> Aqui te dice la posicion de las columnas si quieres cambiar el orden solo
> tienes que hacer un update a esta tabla.....pero con cuidado ya que es una
> tabla muy importante para postgresql

Obviamente esto sólo se puede hacer si la tabla está vacía, y como dice
Jaime si no hay FKs u otras restricciones, etc.

--
Alvaro Herrera Developer, http://www.PostgreSQL.org/
"XML!" Exclaimed C++. "What are you doing here? You're not a programming
language."
"Tell that to the people who use me," said XML.

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message uno dos 2009-07-13 08:08:10 Re: caracteristicas unicas de postgresql
Previous Message Crispin T. 2009-07-13 02:10:30 Re: consulta sql