1

I have oracle database server. I use sqlplus for select some infomation of database. But it seem not working (result like this) ? It will alway display "2" for all query "select". Something is went wrong?

2
  • That is how statements can be entered over multiple lines. To run your query end a line with a semi-colon ;. Commented Aug 8, 2018 at 18:07
  • @Brian ; is just the default sqlterminator, although to be fair nobody ever changes it. The / character doesn't change though. Commented Aug 8, 2018 at 23:22

3 Answers 3

4

Can you try using statement terminator, i.e. ; at the end of statement. Something like

select sysdate from dual;
Sign up to request clarification or add additional context in comments.

Comments

2

sqlplus prompt expect multi-line query if you are not giving the query terminator and shows number. Hence you were getting 2 as 2nd line number.

Comments

1

its not showing you the output rather its making the cursor go to next line which is 2.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.