mysql - declare用法

來源:魅力女性吧 1.5W
mysql declare用法

MySQL declare語句是在複合語句中聲明變量的指令。主要用法如下

(1)Example with two DECLARE statements 

在過程中定義的變量並不是真正的定義,你只是在BEGIN/END塊內定義了而已。

(2)Example with no DEFAULT clause and SET statement  沒有默認子句和設定語句的例子。

熱門標籤