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 3 of 6 Topic 3154 of 3283
Post > Topic >>

Re: Question about firebird!

by db <db@[EMAIL PROTECTED] > May 7, 2008 at 08:40 AM

[newblue@[EMAIL PROTECTED]
 ~]$ cat Robert Klemme

> How come a db.geek doesn't know?

-_-

I'm a db beginner, I hope be come a db geek.

> Basically you have two options:
>
> 1. insert, catch error and update
>
> 2. update, check update row count and insert if 0

Now, I'm do it with this way. I post this topic, it is want to look for
a way better than this way, do it fast.

> Which of the two you choose depends on the RDBMS used as well as your
> expected distribution of data.  IOW if you expect that most data sets
> will lead to an insert do approach 1 otherwise do 2.
>
> Also, there can be subtle issues with concurrent updates in scenario
> 2, i.e. the update can return 0 rows and the insert can still fail.
>
> Btw, why the strange naming of columns?
>
> Cheers
>
> 	robert

-- 
机器重新开动,系统重新安装,建立新的思想,迎接新的局面,一切重新再来
汝不可因难而妄自薄菲
 




 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:24:31 CST 2008.