I have 3 tables
Table 1 EIN columns :
id, name, plate,in_datetime,time,image-name.
Table 2 EOUT columns :
id, name, plate, out_datetime, time, image-name.
Table 3 recon columns :
id, plate,in_datetime,in_entry_id,out_datetime, out_entry_id,Processed, duration.
I need to get table 1 and table 2 values into table 3 columns using where condition. I am using the below query:
INSERT INTO recon (id,EIN.plate,EIN.in_datetime, EIN.id, EOUT.out_datetime, EOUT.id,null, null)
SELECT EIN.RegistrationMark,EIN.datetime,EIN.id, EOUT.date,EOUT.id FROM EIN_anpr_vega as EIN, EOUT_anpr_vega as EOUT
where EIN.plate = EOUT.plate
and EIN.in_datetime = EOUT.out_datetime
I am getting an error near null, null. below is the error.
for the right syntax to use near 'null, null