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

  • Home
  • SEARCH
  • 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 8169989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:01:36+00:00 2026-06-06T21:01:36+00:00

In the Oracle PL/SQL , I have this coding, it gives me complier error.

  • 0

In the Oracle PL/SQL , I have this coding, it gives me complier error. I don’t know why, looks like I have everything …

Please help.

Thanks

 ORA-06550: line 6, column 5:
PLS-00103: Encountered the symbol "CREATE" when expecting one of the following:

   ( begin case declare end exit for goto if loop mod null
   pragma raise return select update while with <an identifier>
   <a double-quoted delimited-identifier> <a bind variable> <<
   continue close current delete fetch lock insert open rollback
   savepoint set sql execute commit forall merge pipe purge
06550. 00000 -  "line %s, column %s:\n%s"
*Cause:    Usually a PL/SQL compilation error.
*Action:

Code is

begin
  for c in (select id from tmp_A)
  loop
    dbms_output.put_line(c.id);

    create table tmp_c as 
    select B.name from tmp_B B where B.id = c.id;   

    drop table tmp_c;
  end loop;
end;
/
  • 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-06T21:01:39+00:00Added an answer on June 6, 2026 at 9:01 pm

    you cannot call ddl statments (CREATE, DROP, ALTER, etc) in PL/SQL directly.
    You can, however use an execute immediate statement:

    begin
      EXECUTE IMMEDIATE 'CREATE TABLE MYTABLE(DT DATE)';
    end;
    

    See:

    http://www.orafaq.com/wiki/PL/SQL_FAQ#Can_one_call_DDL_statements_from_PL.2FSQL.3F
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a (simplified) Oracle SQL like this: declare xd number; xm number; DataOut
I have a SQL like this; (in Oracle SQL Developer ) SELECT A.HESAP_NO, A.TEKLIF_NO1
I have a hierarchical table on Oracle pl/sql. something like: create table hierarchical (
I have a problem with compiling an Oracle trigger via SQL*PLUS - I don't
Oracle 8 SQL: I do have data like VTR 564-31 / V16 H12 W08
I have this error when running a large query on oracle. any advice? I'm
I have this managed bean which makes SQL queries to Oracle database and returns
I want to make one question about oracle/sql query. I have some data like
There must be something I'm missing here. I have this nice, pretty Oracle SQL
I'm getting crazy with this problem: I have got some Oracle SQL-Reports to redesign

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.