Results 1 to 1 of 1
-
02-01-2012, 03:51 AM #1
Cannot perform '<=' operation on MySql.Data.Types.MySqlDateTime and System.String.
Hi all,
Hoping someone might have an answer to this.
I am build an DataView from a DataTable where the source data is from MySQL.
I dynamically build a selection criteria which works great except for the dates in the source table.
I have tried the following 3 methods and get three different errors:
( ETD_DT <= '2011-03-17 12:11:31' ) and (ETA_DT >= '2011-03-17 12:11:31' )
gives me an error that says
"Cannot perform '<=' operation on MySql.Data.Types.MySqlDateTime and System.String."
So I tried:
( ETD_DT <= #2011-03-17# ) and (ETA_DT >= #2011-03-17# )
gives me an error that says
"Cannot perform '<=' operation on MySql.Data.Types.MySqlDateTime and System.DateTime."
So I tried:
( ETD_DT <= {ts '2011-03-17 12:44:03'} and ETA_DT >= {ts '2011-03-17 12:44:03'} )
gives me an error that says
Syntax error: Missing operand after ''2011-03-17 12:47:47'' operator
Similar Threads
-
data type for a link column in mysql
By slanluc in forum PHPReplies: 4Last Post: 04-09-2012, 02:19 AM -
mysql table data question
By komrad in forum DatabasesReplies: 5Last Post: 04-05-2011, 01:53 AM -
What is Content management system? Different types of CMS Concepts.
By pegasys in forum Graphics Design & Web DesignReplies: 1Last Post: 09-29-2010, 04:10 AM -
perform before retrieving data from the next result set of a stored procedure
By gkumar in forum DatabasesReplies: 2Last Post: 10-26-2009, 08:06 AM -
PHP & MYSQL Data Entry Website (help plz)
By arya054 in forum PHPReplies: 1Last Post: 09-05-2009, 07:54 AM


Reply With Quote

