sql - Deleting from SQLite table -
i running following command delete tuple table in sqlite error
delete students s s.name="smith"
i sure there entry named smith, , sure there column named "name". here error message:
sqlitemanager: sql syntax error: delete students s s.name="smith" [ near "s": syntax error ] exception name: ns_error_failure exception message: component returned failure code: 0x80004005 (ns_error_failure) [mozistorageconnection.createstatement]
i think renaming table:"students s", cannot find solution. can help? thanks
in sql delimit strings single, not double quotes. in addition, not alias tables in delete
statements in way did:
delete students name='smith'
if must use alias, syntax should work:
delete s students s s.name='smith'
Comments
Post a Comment