I have created a table using below mensioned query in MySQL.
CREATE TABLE Pat_Visit (PatientID INT(16), FOREIGN KEY(PatientID) REFERENCES patient_demo(PatientID),Visit_DateTime DATETIME,Visit_Title VARCHAR(6),
DoctorID INT(16),FOREIGN KEY(DoctorID) REFERENCES Doctor(DoctorID));
and i have tried to add some data using query given below.
INSERT INTO Pat_Visit(PatientID,Visit_DateTime,Visit_Title,DoctorID) VALUES (100001,10/24/11 10:00 AM,'PAIN IN JOINTS',920001);
but it ios throwing error. I dont know what is the problem here.can anybody help me please…
Try this instruction:
You could convert your date like this:
So the instruction is:
Extracted from the Mysql datetime documentation