Есть таблица
goods_categories (id_categories,
categories_name,
categories_description,
creation_date,
id_employee_created,
deleted,
deleted_date,
id_employee_deleted,
display_recommendations,
num,
display_condition_recommendations)
Надо вставить копию строки из этой таблицы со значениями
(11, `Программирование`.'<p>программирование</p>', 2018-11-20 12:27:39, 15, 0, '0000-00-00 00:00:00', 0, 1, 8, 0)
заменив в поле categories_name `Программирование` на `Веб-программирование`. Поле id_categories Auto.
Мой код:
INSERT INTO goods_categories (categories_name, categories_description, creation_date, id_employee_created,
deleted,deleted_date, id_employee_deleted, display_recommendations, num, display_condition_recommendations)
VALUES ('Веб-Программирование', '<p>программирование</p>', 2018-11-20 12:27:39, 15, 0,
'0000-00-00 00:00:00', 0, 1, 8, 0)
SELECT CONCAT ('Веб-Программирование', categories_description, creation_date, id_employee_created, deleted,
deleted_date, id_employee_deleted, display_recommendations, num, display_condition_recommendations)
FROM goods_categories
WHERE categories_name = 'Программирование'
В ответ получаю:
Error Code: 1064
You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near '`goods_categories`
iNSERT INTO goods_categories(categories_name,categories_desc' at line 1