SQLIte: Update colunm Concatinate string syntax

I'm trying to update movie title by adding "John Wayne: " the syntax bellow is throwing error

[12:07:31] Error while executing SQL query on database 'MovieDatabase': near ".": syntax error

UPDATE movie SET m.title = 'John Wayne: ' || m.title FROM movie m, movielinkperson p WHERE m.id=p.movieid and p.personid=3994

Open in new window

I know the bit after "FROM" is valid as I've used it in a select query

According to the SQLite Docs  || is the concatenation operator for SQLite and not CONCAT as it is in other Databases
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

As you may see here: https://sqlite.org/lang_update.html SQLite does not support UPDATE FROM so you have to use different kind of UPDATE query, e.g.:
UPDATE movie SET title = 'John Wayne: ' || title WHERE id IN (SELECT movieid FROM movielinkperson WHERE personid=3994)

Open in new window

BTW, I wouldn't update the official movie title. This kind of updates destroy the original data in fact. Of course, you may use such concatenation when presenting data on some customized output.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
trevor1940Author Commented:
Thanx I was thinking I might have to do something like that

Mery Xmas
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.