when i run the below query;
select * from Tb_SCh_TIme_Table
Sch_Date Session Course Faculty_Code
2/11/2013 1 ARPA BAB
2/12/2013 1 CHEMCO BSR
2/13/2013 3 CL2 CJJ
when i run the Below query
select * from Tb_SCh_TIme_Table where Sch_Date = 2/11/2013
The output is not coming why?
what is the problem in my above query?
Please help me.
Regards,
Rao
Satyapriya NayakPosted Feb 25, 2013, 3:25 AM
str = "select * from Tb_SCh_TIme_Table where Sch_Date = '2/11/2013'";
If datatype is datetime then use
str = "select * from Tb_SCh_TIme_Table where Sch_Date = #2/11/2013#";
Thanks