on 03-27-2009 3:08 PM
Hi All,
How can we use the todate function to update a date field in Oracle database. I am getting a
java.sql.SQLException: ORA-01858: a non-numeric character was found where a numeric was expected
Exception, when I am mapping the date fields with to_date('03/28/2009 18/43/19','MM/DD/YYYY HH24/MI/SS').
Thanks,
Yomesh
Make sure that you use the attribute hasQuot with value as No.
Regards.
Liang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The following is standard SAP document regarding this attribute, this attribute used to compose your SQL clause for string or non-string, for string, you need to put the "YES". in your case, you need to set set the value "NO"
so create an attribute, pass a constant value "NO" to it, that is it.
hasQuot= YES|NO During construction of the WHERE condition of the SQL statement, the table column type determines whether the default is to set the values in quotation marks (text column types) or not (numerical column types). In a few cases (for example, when using functions), it may be necessary to override this. This attribute enables you to do this. If YES, quotation marks are always set round the values for which this attribute is set in the SQL syntax. If NO, quotation marks are never set. Only use this attribute in individual cases.
Regards.
Liang
hi,,
which is the format you are specting the date in DB.
as i can see if you send ('03/28/2009 18/43/19','MM/DD/YYYY HH24/MI/SS'). surely you have to send the date with the next format in PI ddMMyyyy HHmmss.
try that
thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.