0

I have a query in Maximo which when run via DB visualizer runs fine. but the same query when I run in java via jdbc it throws sql exception. The query is a bit different than usual and is shown below.

It gives the next sequence number for the next entry.

select nextval for mytabledseq from sysibm.sysdummy1
Sun
  • 2,595
  • 1
  • 26
  • 43
AhmedRana
  • 486
  • 9
  • 22

1 Answers1

0

I have found the issue. I had to add the schema name before mytableseq. e.g. MAXIMO.mytableseq now it works fine

AhmedRana
  • 486
  • 9
  • 22