Question

PLSQL Sequence Query

Rating9.6Excellent

I have a section of code and I want to assign the next value of a sequence to a variable.

...

next_seq_val NUMBER ;

BEGIN

next_seq_val := ROWID_SEQ.NEXTVAL ;

...

But I get a compilation error saying something about I cannot use this in this context??

How do I get around this??

  1. execute plsql procedure with IN OUT variables
    I'm not sure how to EXECUTE this PLSQL procedure with IN and OUT values. There is a space in the IN data that is also causing some problems. I've tried the following but get various errors. execute XYZ(in_ser=>'ABC 870223', ref, freq); execute XYZ(in_ser=>ABC 870223, ref, freq); execut…
  2. oracle plsql
    in regards to http://www.oraclesolved.com/Q_25463934.html I have created Create or replace procedure moos.Insert_pps_procedure (v_work_number varchar2, v_current_code number, v_current_date varchar2, v_comments varchar2, v_create_date varchar2, v_principal_amt numb…
  3. parsing the string in plsql
    Can you please help me in parsing the following string in plsql : defaultSring=S_EMPLOYEE.LOGIN = 'JBORROW' and maintbl.status = 'sold' I need the following output String1: S_EMPLOYEE.LOGIN = 'JBORROW' String2: maintbl.status = 'sold' Values for the variables S_EMPLOYEE.LOGIN and ma…
  4. plsql cursor
    I havea very basix plsql Q this code is giving me error DECLARE prvd varchar(50); prvd1 varchar(50); cursor V_CURSOR is select P2.PROVIDER_NAME from schema.first_table p2; BEGIN open V_CURSOR; loop fetch V_CURSOR into prvd; select P.PAOWNAME…
  5. plsql information
    in our organization we do not have a plsql developer ;management has requested that the DB team starts to give classes to .NET developers to put them on the track for plsql . preparing this curriculum I need some help : 1- poiniting conusion between sql and plsql. 2-developers misunderstanding about plsql. 3- why it is diffrenet;alomg with …

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution
View This Solution - Start Your 30 Day Free Trial
Zone
General
Tags
plsql sequence
Participating Experts
2
Solution Grade
A

Replies

 
by: pennnn

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 
by:

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 
by: pardeep_nagra

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Stay Connected

Oracle Around the Web

The latest Oracle news, tips, and tricks

Oracle Unveils Netra SPARC T3 Servers

New Carrier-Grade Blade and Rackmount Servers Deliver Better Performance, Density and Power Efficiency for the Communications Industry ...

read more

Oracle fixes 21 flaws in Java SE, Java for Business

Oracle is fixing 21 flaws in its Java SE and Java for Business products in its February critical patch update issued this week ...

read more

Obama’s Silicon Valley “Tech Supper”

Why was he there? Who wasn’t invited and why? What did they talk about? Why was he really there? These are the questions being debated ...

read more

Featured Oracle Experts

slightwv

slightwv has answered more than 2,000 Oracle questions and oversees database management within the U.S. Government. Slightwv

sdstuber

A regular presenter at the Collaborate conference, Oracle developer sdstuber is a top expert in PL/SQL and Oracle 9, 10 and 11. sdstuber

Testimonials

What users are saying about our experts

"The Oracle gurus provide answers, solutions and valuable workarounds"

User: schwertner

"Wow! Excellent, valuable explanation. Hats off to you"

User: aseshu70

"Solution worked fantastic and performs excellent! Thanks heaps"

User: klausbrandlhuber

Top Experts

  1. slightwv

    2,000

    0 points yesterday

    Profile

BrowseBecome an Expert