on 09-25-2008 8:05 AM
hai to every one ,
i getting error while getting data from database.
i used the data dictionary prospective devloped table.
and inserted data to table. in that i have the date field.
i assigned in that as type = Date
then i wriiten method in java to retrive the data by Date criteria it showing Error like as follow.
i used the date type in java as Java.sql.date.
when assigned to TaskDate in dictionary date type.
what i need to do help me. pl
The SQL statement "SELECT * FROM "TASK_DETAILS" WHERE "TASK_RECEIPT_DATE" = '2008-09-24' ORDER BY 1,2" contains the semantics error[s]: - 1:34 - type check error: the left hand side >>"TASK_DATE"<< (DATE) and the right hand side >>'2008-09-24'<< (CHAR) of a comparison operator are not comparable
You will have to use the query as
Date sqlDateObject = new Date(System.currentTimeInMillis());
"SELECT * FROM "TASK_DETAILS" WHERE "TASK_RECEIPT_DATE" = '" + sqlDateObject + "' ORDER BY 1,2"
-Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hai ,
its happy to see u r messages , but i done what u given but the error is same , that is like as blow .
i think the dictionary date is not matched with sql Date , my assume is write!
here we can note that CHAR type is assigned , how it is possible .
no where i not assigned to any of attribute is CHAR.
The SQL statement "SELECT * FROM "TASK_DETAILS" WHERE "TASK_RECEIPT_DATE" = '2008-09-24' ORDER BY 1,2" contains the semantics error[s]: - 1:34 - type check error: the left hand side >>"TASK_RECEIPT_DATE"<< (DATE) and the right hand side >>'2008-09-24'<< (CHAR) of a comparison operator are not comparable
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.