select 10 from dual; y its showing all the rows with 10?
Answer / honey
1.
As we know that Implicitly Cursor 'SQL' is opened.
when it is pin pointing the 1st row in the dual, cursor
found that one record exists.
2.
since there are no conditions (i.e., where,group by,..),
directly 'select' clause will be executed.
3.
Internally Oracle identifies numbers, so 10 number will be
displayed.
Is This Answer Correct ? | 1 Yes | 3 No |
What is the use of %rowtype?
What are types of joins?
Types of indexes. What is the default key created when a primary key is created in a table ?
Explain the advantages and disadvantages of stored procedure?
Can we perform dml in function?
Is hadoop a nosql?
Is sql dba a good career? : SQL DBA
How to execute multiple sql statements in a single annonymous block irrespective of the sql statement result?
What plvcmt and plvrb does in pl/sql?
What is sql*plus?
What is mutating table error?
Which are the most commonly used sql joins?