Hey,
I am building a dynamic query.
i create a select on some table fields and i append the where clause like this - ... Column_A = 'value' AND COLUMN_B = 'value' ...
i dont know the table and the columns types from ahead, so i wrap the value with single quote.
Almost all Data Base support automatic casting and even if COLUMN_A is a numeric type i can wrap the value with single quote.
I have problem with DB2 that give an error in case of numeric column.
Does any one know a solution for this?
My client is in Java over JDBC connection.
Thank you
I am building a dynamic query.
i create a select on some table fields and i append the where clause like this - ... Column_A = 'value' AND COLUMN_B = 'value' ...
i dont know the table and the columns types from ahead, so i wrap the value with single quote.
Almost all Data Base support automatic casting and even if COLUMN_A is a numeric type i can wrap the value with single quote.
I have problem with DB2 that give an error in case of numeric column.
Does any one know a solution for this?
My client is in Java over JDBC connection.
Thank you