DB2 query error during the retrieval of a CLOB field

后端 未结 2 872
孤城傲影
孤城傲影 2021-01-22 09:35

From Java I am doing the following query on DB2:

SELECT * FROM PRV_PRE_ACTIVATION WHERE TRANSACTION_ID = ?

The field TRANSACTION_ID

2条回答
  •  孤城傲影
    2021-01-22 10:18

    Try changing to a specified list of columns in the select list -- my guess is you have a user defined column type (or some other type) which is not supported by your driver. For example, does the statement

    SELECT TRANSACTION_ID FROM PRV_PRE_ACTIVATION WHERE TRANSACTION_ID = ?
    

    work? If so then start adding columns in and you will find the problem column.

提交回复
热议问题