B
Ben Fidge
Hi
I'm trying to query a MySql database using OdbcConnection. My query looks
like so:
select Count(*) from Table1 where BookingDate = @Date
I'm using an OdbcParameter set up as such:
OdbcParamter oParam = oCmd.Parameters.Add("@Date", OdbcType.Date);
oParam.Value = dDate.Date;
Where dDate = new DateTime(2005, 11, 4);
I know there to be records matching this query in the database yet nothing
is returned. I'm new to MySql, coming from a SqlServer background. Am I
missing something obvious?
Thanks
Ben
I'm trying to query a MySql database using OdbcConnection. My query looks
like so:
select Count(*) from Table1 where BookingDate = @Date
I'm using an OdbcParameter set up as such:
OdbcParamter oParam = oCmd.Parameters.Add("@Date", OdbcType.Date);
oParam.Value = dDate.Date;
Where dDate = new DateTime(2005, 11, 4);
I know there to be records matching this query in the database yet nothing
is returned. I'm new to MySql, coming from a SqlServer background. Am I
missing something obvious?
Thanks
Ben