I am trying to connect to DB2 using python 3.10.2 (x64). I am able to setup connection using ODBC (Windows 11 x64, odbcad32). I am using VS Code IDE ...
I am trying to connect to DB2 using python 3.10.2 (x64). I am able to setup connection using ODBC (Windows 11 x64, odbcad32). I am using VS Code IDE ...
I'm trying to execute delete SQL like below in ksh. In this roop, I can delete row one by one. But what I want to is to delete multiple rows like 5 ...
I want to insert multiple records in a multi-thread function into DB and after inserting a specific amount of records i become always the following ex ...
I am using DB2LUW 11.5. I build a json and gets an output like this But I want the id from B_OBJECTS listed only once. Here is my query... I ...
I have some code to query a db2 database that works if I don't include "for fetch only," but returns an error if I do. I was wondering if it's already ...
I created a connection between R and Db2 on Cloud Then I created the table I loaded the dataset from a file into the table ...
I have about 100 rows to insert in a table - Some of them have already been inserted before and some of them have not This is my insert that works fi ...
I want to create a view from another view that I have select statement privilege. However, I can't and I am getting this error. Do you know why? Do I ...
I am doing large INSERTs into an old DB2 server, and for various reasons, I need them to be as fast as possible. According to https://developer.ibm.c ...
need help with this query DB2 IBM Now my question is , how can I get the today date minus 1 day ? Thank you so much have test it with ADD_DAYS do ...
I need to convert dates in a DB2 Database to UTC values. Usually the TO_UTC_TIMESTAMP function would be the way to do this, but this method seems to ...
More of an amusement than a real problem, but is it possible to get higher precision than microsecond in current_timestamp. Syntactically: works fi ...
I am always getting a null value from using XMLCAST function in Db2. But when using a normal function call it is returning value in xml format... as b ...
I would like to update query for records between 24 hours since the specific date and time. The current query works fine, except I need to update two ...
I want to get a specific subset of data from my table based on values I specify across 3 columns. The following SQL is returning the expected results ...
How to use like clause with multiple values in DB2 version 12.01. SELECT t1.* FROM table1 t1 , ( select (pattern_col) as term from help_table ) t2 WH ...
I have a dataset like the below: which I want to convert to this format using SQL in Cloud DB2 instance: As the example shows, In my original ta ...
I am working on migrating an iSeries DB2 database to SQL Server (manually - not currently using SSMA). I have a DB2 column of type varchar(32000). Whe ...
In my trigger I want to throw an exeption, but it is not working properly, got exception. Using DB2 LUW ...
How can I rewrite the Select statement to retrieve TRUE or FALSE in the tempBool variable? For now I got only true if the length is > 100 and other ...