-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
  • 39,301
  • 5
  • 14
  • 25
Bhupendra Singh Rautela
  • 3,406
  • 6
  • 21
  • 25

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
  • 45,398
  • 8
  • 30
  • 47