Category "db2"

Method executeQuery cannot be used for update. ERRORCODE=-4476, SQLSTATE=null

I am using Spring batch framework to read from db2 and getting error. Please note that same is working fine with Mysql. When using db2 its making entry in meta

DB2 SQL How do I turn a number into a string then concatenate a percent sign onto it?

I would like to display 71% in my RESULTS field. I have rounded the decimal percentage first (it was 71.04), now I want to turn it into a string so that I can c

Cannot see any objects on DB2 (AS400) database after updating to R 4.2.0

When I connect to a DB2 database via ODBC using the recently released R 4.2.0 the database appears to have no objects. Connecting to AWS has no such issues, and

DB2 SQL Statement WHERE clause CASE WHEN in multiple conditions

This is what I am trying to do: SELECT id, name FROM users WHERE isActive=true (AND CASE WHEN {param} != null THEN name={param} ELSE null E

db2 list of stored procedure in a database

I would like to have the list of stored procedure created in a certain database. I tried db2 "display procedure MyDb.*" But I get error DB21034E The comman

Can any find the solution for this Error in IBM DB2?

%sql select Name_of_School, Safety_Score from SCHOOLS where \ Safety_Score= (select MAX(Safety_Score) from SCHOOLS) i am trying to execute this query i got t

How to convert DB2 binary data to UTF-8 at query level

I am connected to IBM DB2 database with java but data is stored as binary format in database so when I fetch any value it comes as binary or hexdecimal format.

User identification problem when I try to launch DB2-kk

I click the button "Go to UI" and appears the following message: {"trace":"46b4bb4886e31314ef92057b01d07ffb","errors":[{"code":"iam_sqlid_error","message":"HWCS

how to solve db2 code: -104, SQL State: 42601

--/ BEGIN FOR V AS MYCURSOR CURSOR FOR SELECT ID,NAME,AGE FROM PEOPLE DO BEGIN INSERT INTO PERSON(NAME,AGE) VALUES(V.NAME,V.AGE);