Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9259995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:47:15+00:00 2026-06-18T12:47:15+00:00

I have pl/sql anonymous block like below declare v_count pls_integer := 0; begin select

  • 0

I have pl/sql anonymous block like below

declare
  v_count pls_integer := 0;
begin
  select count(1) from product_component_version
    into v_count
   where product like '%Enterprise%';
  if v_count = 0 then
    raise program_error;
  end if;
exception
  when program_error then
    raise_application_error (-20001, 'This is valid for Oracle Enterprise Edition         only!');
end;

When I try to execute the above,I am getting the below error

ORA-06550: line 5, column 5:
PL/SQL: ORA-00933: SQL command not properly ended

Which is nothing but for “into v_count” statement.

As per my understanding the syntax is wrong and when I changed that statemnt like below it is working fine.

select count(1) into v_count
  from product_component_version
 where product like '%Enterprise%';

I have tested this in “Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit”.

But the original script is available in all our older versions of our product.
I would like to know the syntax in original script is supported in older oracle versions?
Or can you please let me know any information on this which can answer my confusion?

Thanks,
Vijay

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:47:16+00:00Added an answer on June 18, 2026 at 12:47 pm

    With a test block:

    declare
        x dual.dummy%type;
    begin
        select dummy from dual into x;
    end;
    /
    

    In Oracle 9iR2 (9.2.0.8 on Solaris), 10gR2 (10.2.0.5 on Solaris) and 11gR2 (11.2.0.3 on Linux) I get exactly the same error:

        select dummy from dual into x;
                               *
    ERROR at line 4:
    ORA-06550: line 4, column 28:
    PL/SQL: ORA-00933: SQL command not properly ended
    ORA-06550: line 4, column 5:
    PL/SQL: SQL Statement ignored
    

    I don’t believe it has ever been supported the way you had it, though I don’t have an 8i or earlier database to test against.

    You said ‘the original script is available in all our older versions of our product’, but would it actually ever have been run, and if so can you identify an exact version it didn’t raise an error against?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we have created following anonymous block........... DECLARE sql_str long(32000); where_str long(32000); counter NUMBER(3):=0; BEGIN
i have sql query select * from Roles Join Users On Roles.Role=Users.RoleId it return
I have a problem with a pl/sql anonymous block. Although I can show the
I have an anonymous pl/sql block with a procedure declared inside of it as
I have a LINQ to SQL query: from at in Context.Transaction select new {
Possible Duplicate: LINQ to SQL: Return anonymous type? I have a standard LINQ to
I have sql server procedure, please see below. ALTER PROCEDURE [dbo].[uspInsertDelegate] ( @CourseID int,
I have SQL Server 2008 with a table called ProductCategories designed like this: Id
I have discovered recently that's possible to call anoymous blocks from jdbc like this:
I have a DataGrid that is automatically fed certain values from an LINQ-To-SQL-Source. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.