We have sort of a OLTP and datawarehouse set up on two different db2 servers. I have written a stored procedure that needs to query data from the other db.
Oracle I do select * from table@servername
SQL Server I select * from servername..table
I know the db2 'servername' from the examples...
This is the code in Oracle. Of course it could be a cursor as well, which I would expect it to be for DB2. Basically I want to do the equivalent of an anonymous block and tie a bunch of statements together without having a stored procedure.
DECLARE
TYPE tbl_Name IS TABLE OF...
I am creating a script to update the DB to our newest version. In Oracle / MSQL it was easy with a script run from SQL*Plus / Query Analyzer.
But I am having problems doing the same in DB2.
Our installations group uses CLP and I cannot seem to create a 'block' to loop through the existing...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.