You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have to update multiple statement in sqlite database from my iOs app. for that I have written following string.
query = @"UPDATE channels set sts = 'A' , isowner = '1' WHERE channelid=6798;
UPDATE channels set sts = 'A' , isowner = '1', srl = '175' WHERE channelid=6795;";
NSLog(@"query %@",query);
[dbManager executeQuery:query];
I have create a string/statment as string with semi colon. It is worked perfectly in sqlite browser/editor, but not working in iOS app. It not throwing any error while executing statement. I don't find any mistake in my code. (as per my best knowledge). Can someone help me, why it is not working?
It is very urgent for me.
Thanks.
The text was updated successfully, but these errors were encountered:
I believe by default the sqlite3 library prevents this for security reasons because it exposes an SQL insertion attack. Here are a few possible solutions:
Separate the UPDATE statements and run them separately (probably best within a transaction).
I have to update multiple statement in sqlite database from my iOs app. for that I have written following string.
query = @"UPDATE channels set sts = 'A' , isowner = '1' WHERE channelid=6798;
UPDATE channels set sts = 'A' , isowner = '1', srl = '175' WHERE channelid=6795;";
NSLog(@"query %@",query);
[dbManager executeQuery:query];
I have create a string/statment as string with semi colon. It is worked perfectly in sqlite browser/editor, but not working in iOS app. It not throwing any error while executing statement. I don't find any mistake in my code. (as per my best knowledge). Can someone help me, why it is not working?
It is very urgent for me.
Thanks.
The text was updated successfully, but these errors were encountered: