• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Integer into a List

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody,
Below is the piece of code that needs a little attention.Is there a way to add a long type value into a List.If yes,please help me because it is very very urgent.Looking forward for help!

the seq value that I am inserting into the table is a field of type NUMBER and NOT NULL.
Any help ASAP is appreciated.
Many Thanks in Advance,
Prabha
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is polite to post the text of the error you are receiving. I take it that you are getting a complaint from the compiler that long argument is not an object. It is easy enough to wrap it in one:

Most databases provide for some sort of autonumber or index field. It is a good idea to take advantage of it if you can. One less thing you need to do.
 
Prabha Dhandapani
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Mr.Joe,
Thanks for the help.It worked fine!I also appologize for not sounding polite.
Once again thanks for the help. We are planning to add a sequence to the table but as a temporary solution, we are doing it this way!
Thanks,
Prabha
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic