Solved

how can i use sequnce object of orcale from visual basic.net

Posted on 2004-08-21
3
204 Views
Last Modified: 2010-04-17
the sequnce object is created in orcale .. but how can i call dat object from vb.net
0
Comment
Question by:cee1891
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 21

Accepted Solution

by:
MogalManic earned 125 total points
ID: 11860092
Just reference it in your select statement:
for example:
  insert into MyTable (table_id, field1, field2) values (mySequence.nextVal, 'value1', 'value2')
will insert the next sequence into the table 'MyTable'.  There is also mySequence.curVal, to retrieve the current value, but I have not found many uses for it because it only is valid after a call of nextVal in the same transaction.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question