MariaDB社区
标题:
Mysql获取到当前时间,转换为整形,并存储到某定义变量中!!
[打印本页]
作者:
business124
时间:
2012-6-18 15: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
怎么这么冷....大热天的。
作者:
business124
时间:
2012-6-18 16:10
business124 发表于 2012-6-18 16:10
怎么这么冷....大热天的。
求回复啊!
作者:
hm3030
时间:
2012-6-19 11:08
select date_format(now(),'%Y%m%d') INTO NowData;
这样不就行了嘛?
欢迎光临 MariaDB社区 (http://123.56.88.72/)
Powered by Discuz! X3.2