0

i am developing a twisted app which interacts with a sqlite backend, in the sqlite db there is a users table of which certain columns should not be updated if they already contain a value. one way of doing this would be to check the user table before each insert for existence of values in the columns of interest and proceed accordingly , but this will be a performance killer and people familiar with twisted will know how cumbersome this can be, can someone suggest a better way of doing this .

TIA

4

1 回答 1

0

尝试INSERT语句INSERT OR IGNORE变体。

于 2012-11-04T23:02:20.140 回答