sqlglot icon indicating copy to clipboard operation
sqlglot copied to clipboard

ParserError when updating multiple tables (MySQL)

Open devfros opened this issue 6 months ago • 0 comments

This works

UPDATE
  authors
SET
  authors.deleted_at = now()

This fails

UPDATE
  authors,
  books
SET
  authors.deleted_at = now(),
  books.deleted_at = now()

Error:

sqlglot.errors.ParseError: Invalid expression / Unexpected token. Line 5, Col: 9.
  UPDATE
  authors,
  books
SET
  authors.deleted_at = now(),
  books.deleted_at = now()

devfros avatar May 26 '26 07:05 devfros