S
S
SOTVM2017-09-26 08:13:38
SQLite
SOTVM, 2017-09-26 08:13:38

How to make/compose a query against a SQLite database?

need to find filmix.net
and replace with https://filmix.me
if doing UPDATE `moz_places` SET `url`= REPLACE(`url`, 'filmix.net', 'filmix.me');
then the command works fine,
but if I do UPDATE `moz_places` SET `url`= REPLACE(`url`, ' http:// filmix.net', ' https:// filmix.me');
I get an error
SQLiteManager: Likely SQL syntax error: UPDATE `moz_places` SET `url`= REPLACE(`url`, ' http://filmix.me, ' https://filmix.me '); [ near "https": syntax error ]
Exception Name: NS_ERROR_FAILURE
Exception Message: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [mozIStorageConnection.createStatement]
I understand that you need to somehow escape the characters "//" or ":"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DDDsa, 2017-09-26
@sotvm

You didn't close the quote :)
ddba029017bf478ba4e099be7ca8aede.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question