Good day!
Doing a simple store with the framework 4, the task of putting the order into the order table. Can't embed, it gives an error
An exception occurred while executing 'INSERT INTO order (sum) VALUES (?)' with params ["0.00"]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order (sum) VALUES ('0.00')' at line 1
here is the table structure
CREATE TABLE `order` ( id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, sum decimal(20, 2) UNSIGNED DEFAULT 0.00, PRIMARY KEY (id) ) ENGINE = INNODB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;