UPDATE accounts
SET lastSerialChange = CURRENT_TIMESTAMP
WHERE username = 'Jayden';
UPDATE accounts
SET serialChanges = '[{"serial":"D06ACE5BBE90E803590D1691FB9254B3","reason":"test","date":1695495618004}]'
WHERE username = 'Jayden';
INSERT INTO serial_requests
(username, serial, reason, requestedAt)
VALUES ('Jayden',
'D06ACE5BBE90E803590D1691FB9254B3',
'test',
1695495618004);
I am querying my database with the above, I believe correct syntax, but I get an error saying:
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 'UPDATE accounts SET serialChanges = '[{"serial":"D06ACE5BBE90E803590D1691FB9254B' at line 2
I have been trying to debug this for a long time but I just can't identify what the problem is with my syntax.