Answer the question
In order to leave comments, you need to log in
How to insert SELECT in UPDATE?
Hello!
Tried to query the database. to change the template for some pages on the site.
UPDATE `modx_site_content` set `template`=5
WHERE `parent` in (SELECT id FROM `modx_site_content` WHERE `parent`=5 AND `template`=6) AND `class_key`="msProduct"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question