generic insert into table

From: Dennis Gearon <gearond(at)fireserve(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: generic insert into table
Date: 2004-06-07 21:29:33
Message-ID: 40C4DE3D.9010901@fireserve.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

please CC me, I am on digest
---------------------------------
I have the following code from an application that is 'mysql_centric'. I
want to make it generic across all databases, if it's possible,
especially postgres :-)

mysql version:
INSERT INTO calendar_setting SET setting='colorEvent',value='#C2DCD5';

There is no data in this table at this time.
Isn't this the same as:
INSERT INTO calendar_setting( 'colorEvent' ) VALUES ( '#C2DCD5');

would this work on all db's?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Arjen van der Meijden 2004-06-07 21:54:57 Re: generic insert into table
Previous Message Chris Browne 2004-06-07 20:21:48 Re: [HACKERS] Slony-I goes BETA (possible bug)