Answers for "select and update in same query mysql"

SQL
1

mysql select update same table

UPDATE
    products_description pd INNER JOIN products_description pd2 ON
    (pd.products_id=pd2.products_id AND pd2.language_id=1 AND pd.language_id<>1)
SET pd.products_seo = pd2.products_seo;
Posted by: Guest on February-27-2020
0

mysql update from select on same table

UPDATE users SET status = 1
WHERE id = (
  SELECT id FROM (
    SELECT id FROM users WHERE id = 10
  ) u
)
Posted by: Guest on October-06-2021

Code answers related to "select and update in same query mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language