Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Relative Record Number in DB2?

New Here ,
Jan 26, 2008 Jan 26, 2008
Has anybody had success retreiving relative record number of a DB2 (8.1) DB? I've used SELECT RRN(column), SELECT rrn, column and a mulititude of other options. Tried CF 6.1,7.02 and 8, none of which have worked. Using latest JDBC drivers (I think)

Any insight would be appreciated.

Thanks!
TOPICS
Database access
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Jan 26, 2008 Jan 26, 2008
a is the correlative I associated with the file name so I don't have to type the whole file name every time I reference it.

You could also try:

select rrn(sysdummy1) from sysibm.sysdummy1
Translate
Guest
Jan 26, 2008 Jan 26, 2008
Have you tried using the correlative you assigned to the file name?

select rrn(a) from sysibm.sysdummy1 a
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 26, 2008 Jan 26, 2008
What is a?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 26, 2008 Jan 26, 2008
a is the correlative I associated with the file name so I don't have to type the whole file name every time I reference it.

You could also try:

select rrn(sysdummy1) from sysibm.sysdummy1
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 28, 2008 Jan 28, 2008
LATEST
Thanks for the help. Don't know why I've never tried to use table name. Works likes a champ.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources