Hello,
Our developers use Db2 v8.1 Personal Edition we want to migrate these boxes to V9.1 Personal Edition.
I am stuck on Security problems. In v8.1 we Created 2 local groups DB2USERS and DB2ADMNS; 2 local Users: DB2ADMIN, DEVUSER. Then we added the developer's Domain/LOGIN ID to both...
For example
with s as
(
select 'no trailing spaces' as istrailing, 'somename' as name from sysibm.sysdummy1
UNION ALL
select 'has trailing spaces' as istrailing, 'somename ' as name from sysibm.sysdummy1
)
select * from s where s.name like 'somename'
ISTRAILING NAME
no trailing spaces...
If you have trailing spaces i.e. 'somename ' (notice the spaces, although the performance are going to be identical between the two queries.
select * from S where s.name='somename';
Will ignore the trailing spaces and return all matching rows.
select * from S where s.name like...
Format MM/DD/YYYY is USA format. To change the format, you can bind the collection of db2 utility packages to use a different date format. The formats supported are:
DEF Use a date and time format associated with the territory code.
EUR Use the IBM standard for Europe date and time format.
ISO...
Thanks, I had to put WITH UR outside the full select. It worked.
UPDATE TEST_STAFF S2
SET DEPT = (SELECT DEPT from PRODUCTION_STAFF
WHERE JOB = S2.JOB
ORDER BY SALARY
FETCH FIRST 1 ROWS ONLY
) WITH UR ;
First of all, I am new to DB2 (3 weeks). I want to update a TEST table with PRODUCTION table in a nested select with read only with uncommitted read.
and i got following error:
Please let me know if it is possible to do what I was trying to achieve. Thanks in advance!
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.