MySQL定义变量

set @days = 3;
select * from table where a = @days

 @定义的为用户变量

@@定义的为系统变量

猜你喜欢

转载自ydlmlh.iteye.com/blog/2242908
今日推荐