0
Why AUTO_INCREMENT does not work?
ALTER TABLE Employees AUTO_INCREMENT=8 INSERT INTO Employees(firstname,lastname,salary) VALUES ('Greta','Wu',1200) SELECT * FROM Employees ORDER BY id DESC
4 ответов
+ 2
You have 3 different statements in your description (ALTER TABLE, INSERT, SELECT).
Each statement should end with a ; semicolon.
+ 2
Ok, i remove the alter table and the auto-increment and everything goes fine. I don't even know why.
+ 1
Does the SQL engine report an error? If so, what is the error message?
0
It says that the AUTO-INCREMENT should be replaced with "SERIAL" in PostgreSQL or "IDENTITY" in SQL SERVER. This is what says.