pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-sql@postgresql.org
Subject: Re: Position of a field
Date: Tue, 27 Feb 2007 14:08:17 +0100
Message-ID: <20070227130817.GF14945@a-kretschmer.de> (raw)
In-Reply-To: <55c095e90702270448p604c906flc5203315f4acdb48@mail.gmail.com>
References: <55c095e90702270351j7ee26c13o1a13f2a6c6b48eaf@mail.gmail.com>
	<20070227121737.GD14945@a-kretschmer.de>
	<55c095e90702270448p604c906flc5203315f4acdb48@mail.gmail.com>

am  Tue, dem 27.02.2007, um  9:48:57 -0300 mailte Ezequias Rodrigues da Rocha folgendes:
> I understant you inquiry but I don't meant to add all the fields order
> in an insert statement.
> 
> IE:
> insert into table values (value1, value2, value3....)
> 
> is better than
> 
> insert into table (column1,column2,column3 ...) values (value1,
> value2, value3....)

No, it isn't better, because, if you change the table in the future and
add new colums, your insert-statement will be failed. If you write your
insert with explicit column order, nothing happens, except the new row
will be empty.


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net



view thread (4+ messages)

Message-ID: <20070227130817.GF14945@a-kretschmer.de>
Permalink:  ../20070227130817.GF14945@a-kretschmer.de/
Also on:    postgresql.org/message-id/20070227130817.GF14945@a-kretschmer.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: andreas.kretschmer@schollglas.com
  Subject: Re: Position of a field
  In-Reply-To: <20070227130817.GF14945@a-kretschmer.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox