I am just learning MySQL and am trying to create a basic table. But I am getting this error:
Error Code: 1136. Column count doesn't match value count at row 1.
Query is
insert into user(username,password,email,created,last_updated) values (
('TEST USERNAME','TEST PASSWORD','Test@test.com',current_timestamp(),current_timestamp()),
('TEST USERNAME 2','TEST PASSWORD 2','Test2@test.com',current_timestamp(),current_timestamp())
);
The columns in the table are :
- id
- username
- password
- created
- last_updated