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 8613197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:48:50+00:00 2026-06-12T04:48:50+00:00

I open a connection to my schema and I want to view a table.

  • 0

I open a connection to my schema and I want to view a table.

Why does this work by itself:

select * from mytable;

But this does not:

   -- other statements above          

   begin 
      insert into mytable(id, name) values (2, "George");
   exception ... 
   end;

   select * from mytable;

This returns nothing. No query output is given. Instead all I see is “Task completed in 0.016 seconds”.

If I restart sqldeveloper and run ONLY the begin/end and the select statements, I get this error thrown at me:

Error report:
ORA-06550: line 7, column 1:
PLS-00103: Encountered the symbol "SELECT" 
06550. 00000 -  "line %s, column %s:\n%s"
*Cause:    Usually a PL/SQL compilation error.
*Action:
  • 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-12T04:48:51+00:00Added an answer on June 12, 2026 at 4:48 am

    I suppose you are trying to run those commands as a script(pressing F5) in a SqlDeveloper. Then there are a couple of things:

    1) Replace double quotes by single quotes in the insert statement.

    insert into mytable(id, name) values (2, 'George');
    

    2) Put slash / at the end of the PL/SQL block.

     begin 
       insert into mytable2(id, name) values (2, 'George');
       commit;
     end;
    /
    

    do not forget commit.

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

Sidebar

Related Questions

I'm trying to send a String[] over an open socket connection but it's doesn't
If a MySQL database connection is already open from a script (say PHP ),
Please have a look at the schema below: CREATE TABLE Person (id int not
If I can open a connection to an MS Access file in C#, how
In c#.net when you open a connection to a database, in my case it's
I read that Mongoose will only open one connection at maximum per collection, and
I'm hearing that is better to have one connection open upon app start up
When I open a MySQL connection in PHP with just PHP's built-in MySQL functions,
How can I open a database connection in user class , where I can
I'm getting the following error when I try to open up a connection with

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.