Answer the question
In order to leave comments, you need to log in
How to create such a query to the database in sql?
In general, you need to execute the following query:
UPDATE dle_post SET xfields = '||iframe2|https://site.ru/h3JunK4x17sJ?title=1?kp_id=(`kp_id_movie`)'
Answer the question
In order to leave comments, you need to log in
If I understood correctly
DECLARE @kp_id integer
SET @kp_id = (SELECT kp_id_movie FROM dle_post)
UPDATE dle_post
SET xfields = CONCAT('||iframe2|https://site.ru/h3JunK4x17sJ?title=1?kp_id=', @kp_id)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question