I have a table with columns {a, b, c} and for row x I want to add a value for a, then a value for b, then a value for c all in separate activities as the user progresses through my app (for another user, values for a, b, and c would be added separately to a row y). How can I do this?
可以插入a,然后b和c必须是该行的更新
i think you need to add a primary key to your table {a,b,c,key_column}
and then you can use below..
To update a:-
UPDATE table_name
SET a=valueA
WHERE key_colum=key_value;
To update b:-
UPDATE table_name
SET b=valueB
WHERE key_colum=key_value;
To update c:-
UPDATE table_name
SET c=valueC
WHERE key_colum=key_value;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.