Operating in the MySQL database also has a circular statement operation, the standard loop mode: While loop, loop loop, and repeat loop.There is also a non-standard loop: Goto. It is not recommended to use because the jump in goto statements can
Mysql while, loop, repeat loop, conforming to the condition to jump out of the loop, mysqlrepeat1. while Loop
DELIMITER $ drop procedure if exists 'SP _ test_while '$ create procedure 'SP _ test_while' (IN p_number INT, # The number of times to be
The MySQL operation also has the cyclic statement operation, the network says has 3 standard cycle way: While loop, loop loop and repeat loop. There is also a nonstandard cycle: goto. In view of the jump of the goto statement will cause the use of
1.loopGrammar:[ begin_label :] LOOP END LOOP [ end_label ] statement_list example: CREATE PROCEDURE doiterate (P1 INT) BEGIN label1:loop SET p1 = p1 + 1; IF P1 iterate can appear only Within loop , repeat , And while statements. iterate
PHP_MySQL tutorial-the next day while loop and the first page of database operations while loop
In this lesson, we will continue to use PHP and MySQL to write some simple and useful pages. We started to display the data in the database from the
The difference between the while loop and the repeat loop in MySQL1, while is to meet the conditions to execute the cycle, repeat is to meet the conditions exit cycle;2. While the condition is judged at least 0 times before the first loop is
First page while loop
In this lesson, we'll go further and use PHP and MySQL to write some simple and useful pages. We start with the database we created yesterday and display the data in the library, but we'll touch it a little bit.
First, we use
From: http://blog.chinaunix.net/space.php? Uid = 21144244 & Do = Blog & cuid = 1923636
Http://wwty.iteye.com/blog/698210
Let's first introduce the Oracle control statements.
If ElseElsifWhile For Loop
The control
1. while loop DELIMITER $ DROPPROCEDUREIFEXISTS 'sp _ test_while '$ CREATEPROCEDURE 'sp _ test_while' (INp_numberINT, # The number of times INp_startidINT # the actual value of the loop) BEGINDECLARE...
Mysql while, loop, repeat loop, conforming to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.