How Can I assign a sequence value to a sqlite field when the field UID value is NULL

Posted by Registered User KC on Stack Overflow See other posts from Stack Overflow or by Registered User KC
Published on 2010-06-12T09:44:57Z Indexed on 2010/06/12 9:53 UTC
Read the original article Hit count: 317

Hi All,

How I can assign a sequence value to a field "UID" which is NUll in existing sqlite table, for example

table: FOO  
name    UID
A   1
B   2
C   100
D   NULL
E   NULL
F   NULL

what I want is

table: FOO  
name    UID
A   1
B   2
C   100
D   101
E   102
F   103

Can some body help? I want to seek an alternative for using autoincrement on my own reason...

thanks!

© Stack Overflow or respective owner

Related posts about sqlite

Related posts about alternative