I am not able to select values with IN
clause using single quotes. The pid
column is varchar(50)
.
select * from t_tra_main where pid in (200000002,300000394,200000004,
200000001,300000378,300000393,300000379,200000003)
select * from t_tra_main where pid in ('200000002','300000394','200000004',
'200000001','300000378','300000393','300000379','200000003')
The first query returns data, but the second query does not.