Skip site navigation (1) Skip section navigation (2)

Re: [SQL] INSERT w/o variable names for a SERIAL type?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Emils Klotins <emils(at)mail(dot)usis(dot)bkc(dot)lv>, pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] INSERT w/o variable names for a SERIAL type?
Date: 2000-02-28 00:19:27
Message-ID: 200002280019.TAA11427@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-sql
[Charset ISO-8859-1 unsupported, filtering to ASCII...]
> Tom Lane writes:
> 
> > > INSERT INTO my_table VALUES (a, b, c, DEFAULT, x, y, z, ...);
> > 
> > I think that is legal SQL92 syntax, but Postgres doesn't accept it
> > at present.
> 
> Oops!
> 
> We do support INSERT .. DEFAULT VALUES, so I guessed too far.

We do?  What does the DEFAULT do?


-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-sql by date

Next:From: Christopher SawtellDate: 2000-02-28 00:36:09
Subject: [SQL] 7.0beta1?
Previous:From: Peter EisentrautDate: 2000-02-28 00:00:31
Subject: Re: [SQL] INSERT w/o variable names for a SERIAL type?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group