I need to update a column in a set of rows in a table. For each row I
need to extract the columns value, change it and update the row.

My question is, is it valid to perform an SQL UPDATE inside a
sqlite3_step() loop. Or put another way will subsequent calls to
sqlite3_step() behave correctly following an UPDATE.

I assume so as this is a fairly basic operation. I have done a quick
documentation search to no avail.

Finally is there a better way to accomplish. Maybe an UPDATE with a
TRIGGER using a user defined function.

Thanks.

-- 
Best regards,
  Neville Franks, http://www.surfulater.com http://blog.surfulater.com
 

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to