Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Databases General > Re: Question ab...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 3154 of 3283
Post > Topic >>

Re: Question about firebird!

by Thomas Kellerer <YQDHXVLMUBXG@[EMAIL PROTECTED] > May 5, 2008 at 06:10 PM

db.geek, 05.05.2008 16:26:
> CREATE TABLE XX ( ID_ INTEGER NOT NULL,
>                   XXN_ VARCHAR(20),
>                   XXK_ VARCHAR(30) );
> 
> I want to insert data into table XX, if has ID_ then update XXN_ and
> XXK_ else insert a new row.
> 
> 
> How to do this?
> Thanks!
> 
Firebird 2.1 has a MERGE statement which is what you want.
I think 2.0 already had an UPDATE OR INSERT statement.

Thomas
 




 6 Posts in Topic:
Question about firebird!
db.geek <geek@[EMAIL P  2008-05-05 22:26:44 
Re: Question about firebird!
Robert Klemme <shortcu  2008-05-05 17:43:42 
Re: Question about firebird!
db <db@[EMAIL PROTECTE  2008-05-07 08:40:09 
Re: Question about firebird!
NewBlue <newblue@[EMAI  2008-05-07 08:40:51 
Re: Question about firebird!
Thomas Kellerer <YQDHX  2008-05-05 18:10:57 
Re: Question about firebird!
NewBlue <newblue@[EMAI  2008-05-07 08:41:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:30:21 CST 2008.