Answer the question
In order to leave comments, you need to log in
Duplicate records in mysql why?
Good afternoon, there is a base
Structure of its
Request
INSERT INTO s_products (url,name,brand_id,meta_title,meta_keywords,meta_description)
VALUES ((SELECT max(product_id) FROM s_products_categories),'%Название%','0','%Название%','%Название%','%Название%')
ON DUPLICATE KEY UPDATE `url` = (SELECT product_id FROM s_products_categories),
`name` = '%Название%',
`brand_id` = '0',
`meta_title` = '%Название%',
`meta_keywords` = '%Название%',
`meta_description` = '%Название%'
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