Humm... nunca parei para fazer isso no PG, mas... Cláusula BEFORE
ALTER TABLE items ADD columns item_weight DECIMAL(6,2) NOT NULL BEFORE total_price Tem mais exemplos aqui: http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.ibm.sqls.doc/sqls112.htm Sei que no SQL Server tb tem, e no MySQL tb, mas não achei referência no manual do PG http://www.postgresql.org/docs/8.3/static/sql-altertable.html Testa e nos diz o resultado. 2008/2/7, sergio <[EMAIL PROTECTED]>: > > > Bom Dia. > > Quando acrescento um campo novo em uma tabela já existente, ele passa a ser > o último campo. Tem como eu colocá-lo em 3º por exemplo? > > > > > Sergio > _______________________________________________ > pgbr-geral mailing list > [email protected] > https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral > > _______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
