1. 程式人生 > >mysql語法

mysql語法

mysql定義變數直接賦值就可以了

定義varchar型別變數

set @a='';

定義int型別的變數

set @b=0;

if語句

if paratype<=0 then
set @str='';
elseif paratype=1 then
set @str='';
else
set @str='';
end if;