Question
How to use "while" statements?

Answers

If you have a block of codes to be executed repeatedly based a condition, you can use the "WHILE ... LOOP" statement. Here is a sample script on WHILE statements:

DECLARE
total NUMBER;
BEGIN
total := 0;
WHILE total < 10 LOOP
total := total+1;
END LOOP;
DBMS_OUTPUT.PUT_LINE('Total counts: ' || TO_CHAR(total));
END;

This script should print this: Total counts: 10   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q What is the Tibetan Yab Yum
  • Q How do i handle the back and forward buttons?
  • Q Define indirect manufacturing costs under traditional cost accounting?
  • Q Pt. Lacchu Maharaj is renowned for
  • Q Is Marxist history still worth studying?
  • Q Is it possible for a WCF service to implement Multiple service contracts?
  • Q Explain in detail about Language Constructs in PHP
  • Q Explain what is the difference between "visibility:hidden" and "display:none"?
  • Q What did you study?
  • Q What is proxy server?
  • Q When can you be sure that a query will return only one row?