sqlite, C#, UPDATE OR REPLACE

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2009-04-15T07:42:40Z Indexed on 2010/05/16 0:10 UTC
Read the original article Hit count: 433

Filed under:

I do something like

UPDATE OR REPLACE someTable SET a=1, b=2 WHERE c=3

I expect if it doesnt exist it will be inserted into the DBs. But nothing happens and i get no errors. How can i insert data, replace it if it already exist and use a where for the condition (instead of replacing BC of a unique ID)

© Stack Overflow or respective owner

Related posts about sqlite