pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: clayton cottingham <drfrog@smartt.com>
To: pgsql-sql@postgresql.org
Subject: is this proper sql?
Date: Tue, 17 Apr 2001 12:51:16 -0700
Message-ID: <3ADC9EB4.C8E80451@smartt.com> (raw)

hi one of the developers here at work say this should work
 insert into detail (det_id,det_mas_id,det_date,det_amt) values 
(0,0,now(),'0'), (1,1,now(),'1');



but when i try that in postgres like:
 insert into detail (det_id,det_mas_id,det_date,det_amt) values 
(0,0,datetime'now','0'), (1,1,datetime'now','1');

i get
ERROR:  parser: parse error at or near ","


now i personally dont think this is real sql
anyone?



view thread (5+ messages)  latest in thread

Message-ID: <3ADC9EB4.C8E80451@smartt.com>
Permalink:  ../3ADC9EB4.C8E80451@smartt.com/
Also on:    postgresql.org/message-id/3ADC9EB4.C8E80451@smartt.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: drfrog@smartt.com
  Subject: Re: is this proper sql?
  In-Reply-To: <3ADC9EB4.C8E80451@smartt.com>
  References: <3ADC9EB4.C8E80451@smartt.com>

* 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