From a3b0cbd2e2ce9039183a08543dd4a93353ad7f38 Mon Sep 17 00:00:00 2001 From: Mars Liu Date: Tue, 2 Aug 2022 16:24:48 +0800 Subject: [PATCH] add options for while --- .../4.WHILE/while.md" | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git "a/data/3.MySQL\351\253\230\351\230\266/3.\350\277\207\347\250\213\345\214\226\347\274\226\347\250\213/4.WHILE/while.md" "b/data/3.MySQL\351\253\230\351\230\266/3.\350\277\207\347\250\213\345\214\226\347\274\226\347\250\213/4.WHILE/while.md" index 7e4beb6..6d94992 100644 --- "a/data/3.MySQL\351\253\230\351\230\266/3.\350\277\207\347\250\213\345\214\226\347\274\226\347\250\213/4.WHILE/while.md" +++ "b/data/3.MySQL\351\253\230\351\230\266/3.\350\277\207\347\250\213\345\214\226\347\274\226\347\250\213/4.WHILE/while.md" @@ -27,7 +27,7 @@ end LOOP trace; ## 答案 ```sql -trade: WHILE @total_price > 20000 DO +trade: WHILE @total_price <= 20000 DO -- 省略交易过程 END WHILE trade; ``` @@ -65,3 +65,27 @@ trade: WHILE @total_price > 20000 -- 省略交易过程 END WHILE; ``` + +### E + +```sql +trade: WHILE @total_price < 20000 + -- 省略交易过程 +END WHILE trade; +``` + +### F + +```sql +trade: WHILE @total_price <= 20000 DO + -- 省略交易过程 +END WHILE trade; +``` + +### G + +```sql +WHILE @total_price > 20000 + -- 省略交易过程 +END WHILE; +``` \ No newline at end of file -- GitLab