We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CREATE TABLE reservation ( id BIGINT NOT NULL IDENTITY (1, 1), start_time DATETIME2(0) NOT NULL, end_time DATETIME2(0) NOT NULL, reserve_time INTEGER, CONSTRAINT reservation_pk PRIMARY KEY CLUSTERED (id) ); GO CREATE TRIGGER reservation_insert ON reservation INSTEAD OF UPDATE AS SET NOCOUNT ON UPDATE reservation SET start_time = inserted.start_time, end_time = inserted.end_time, reserve_time = DATEDIFF(second, inserted.start_time, inserted.end_time) FROM inserted WHERE reservation.id = inserted.id GO
2023/09/17 02:23:13 found syntax error when parsing DDL "CREATE TRIGGER reservation_insert ON reservation INSTEAD OF UPDATE AS SET NOCOUNT ON UPDATE reservation SET start_time = inserted.start_time, end_time = inserted.end_time, reserve_time = DATEDIFF(second, inserted.start_time, inserted.end_time) FROM inserted WHERE reservation.id = inserted.id ": syntax error at position 255 near 'from'
The text was updated successfully, but these errors were encountered:
odz
No branches or pull requests
Platform
Current Schema
Current output (--export)
Expected output (--export)
The text was updated successfully, but these errors were encountered: