I created a database table and I'm trying to insert data into it, but I get this error:
Msg 207, Level 16, State 1, Line 4
Invalid column name 'Datum_narodenia'.
Msg 207, Level 16, State 1, Line 4
Invalid column name 'Datum_narodenia'.`
I wrote this query:
INSERT INTO Zamestnanci (id_Zamestnanca, Meno, Priezvisko, Adresa, Datum_narodenia)
VALUES ('001', 'Filip', 'Pokorný', 'Sladkovičova 336', '12.1.1970'),
('002', 'Ján', 'Malý', 'Hurbanova 36', '27.8.1965'),
('003', 'Milada', 'Gregorová', 'SNP 2', '1.7.1991'),
('004', 'Zuzana', 'Jankovská', 'Okružna 312', '6.10.1959'),
('005', 'Gregor', 'Valek', 'Hlavná 22', '25.6.1985'),
Table I created:
CREATE TABLE Zamestnanci
(
id_Zamestnanca int not null,
Meno varchar(50) null,
Priezvisko varchar(50)null,
Adresa varchar(50) null,
Datum_narodenia date null,
PRIMARY KEY (id_Zamestnanca)
);t
How can I solve this? Thank you for all your answers and advice.