business124 发表于 2012-6-18 15:29:29

Mysql获取到当前时间,转换为整形,并存储到某定义变量中!!


<P> DECLARE NowData INT ;    </P>
<P> select CAST(date_format(now(),'%Y%m%d')AS INT)INTO NowData;</P>求修改!!!


business124 发表于 2012-6-18 16:10:22

怎么这么冷....大热天的。

business124 发表于 2012-6-18 16:10:42

business124 发表于 2012-6-18 16:10 static/image/common/back.gif
怎么这么冷....大热天的。

求回复啊!

hm3030 发表于 2012-6-19 11:08:35

select date_format(now(),'%Y%m%d')INTO NowData;
这样不就行了嘛?
页: [1]
查看完整版本: Mysql获取到当前时间,转换为整形,并存储到某定义变量中!!