How to use "while" statements in oracle?
Answer / Madhup Kumar
In Oracle, you can use a 'LOOP' statement with an embedded 'EXIT' statement to create a while loop. Here's an example:n```sqlnDECLAREn counter NUMBER := 1;nBEGINn LOOPn IF counter > 10 THEN EXIT; END IF;n DBMS_OUTPUT.PUT_LINE(counter);n counter := counter + 1;n END LOOP;nEND;
``
| Is This Answer Correct ? | 0 Yes | 0 No |
How to define Data Block size ?
What is Database Link ?
How to import one table back from a dump file?
Explain what are the different type of segments?
What privilege is needed for a user to query tables in another schema?
Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?
11. Display the client number and name and the client number and name of the person who referred that client.
I need to get the values of the previous quarter.how to do this?eg: if my cuurent month is may i need to get the datas of the month jan,feb,march.Can it be done in oracle.I tried with date function q but for the month jan its not retriving the previous quarter(oct-dec).how to solve this.plpz anyone help me?
how to get the index id?
What is oracle server autotrace in oracle?
State the various uses of dbcc command?
Can a View based on another View ?