I have a table with fields
EmployeeID
blahblah
blahblah2
.....
RecordMonth
RecordYear
- so each employee should only have a matching entry for a month, year, Emp#. How do I set up a table.
So how do I set up the table so that EmployeeID can be updated once a month but can never have two entries for a matching month and year?
'Incorrect table definition; there can be only one auto column and it must be defined as a key')– Dmitriy Grankin May 30 '20 at 07:07ALTER TABLE yourtable MODIFY id INT NOT NULL;first. – Dmitriy Grankin May 30 '20 at 07:12