提交 a3b0cbd2 编写于 作者: M Mars Liu

add options for while

上级 db04ee2e
...@@ -27,7 +27,7 @@ end LOOP trace; ...@@ -27,7 +27,7 @@ end LOOP trace;
## 答案 ## 答案
```sql ```sql
trade: WHILE @total_price > 20000 DO trade: WHILE @total_price <= 20000 DO
-- 省略交易过程 -- 省略交易过程
END WHILE trade; END WHILE trade;
``` ```
...@@ -65,3 +65,27 @@ trade: WHILE @total_price > 20000 ...@@ -65,3 +65,27 @@ trade: WHILE @total_price > 20000
-- 省略交易过程 -- 省略交易过程
END WHILE; 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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册