Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SQL запрос на заполнение переводов для товаров для выбранного языка
INSERT INTO product_lang (id_product,id_lang,title, description)
SELECT
p.id,
l.id_lang,
NULL,
concat('description_test','_', l.iso_code)
FROM products p
LEFT JOIN lang l ON l.id_lang != 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment