-1

enter image description here

INSERT INTO project_categories (id, category_id, project_id, company_id, created_at, updated_at) VALUES (385, 1, 88, NULL, now(), now());

ERROR 1064 (42000): 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 'INSERT INTO project_categories (id, category_id, project_id, company_id, c' at line 1

Akina
  • 31,909
  • 5
  • 12
  • 21
HillHacker
  • 3,070
  • 6
  • 19
  • 23

1 Answers1

1

Instead of

’2020-04-03 18:14:01.000000’

Use

'2020-04-03 18:14:01.000000'

Please read

This works see works

It is your query, only without the now part that should work anyway.

INSERT INTO project_categories (id, category_id, project_id, company_id, created_at, updated_at) VALUES (385, 1, 88, NULL,'2020-04-03 18:14:01.000000', '2020-04-03 18:14:01.000000');
nbk
  • 31,930
  • 6
  • 24
  • 40