MySQL社区

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
查看: 1698|回复: 1

[存储过程及函数] delimiter $ create procedure setCoin(_coin float, _fcoin float, _uid int, _li...

[复制链接]
发表于 2016-8-12 10:51:19 | 显示全部楼层 |阅读模式
delimiter $
create procedure setCoin(_coin float, _fcoin float, _uid int, _liqType int, _type int, _info varchar(255) character set utf8, _extfield0 int, _extfield1 varchar(255) character set utf8, _extfield2 varchar(255) character set utf8) begin
       
        -- 当前时间
        declare currentTime int default unix_timestamp();哪里错了懂的老哥回答下
发表于 2016-8-12 16:19:26 | 显示全部楼层
declare currentTime DATETIME DEFAULT CURRENT_TIMESTAMP;
时间不能用int类型

参考自:
MySQL存储过程详解 http://www.data.5helpyou.com/article314.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|申请友链|小黑屋|Archiver|手机版|MySQL社区 ( 京ICP备07012489号   
联系人:周生; 联系电话:13911732319

GMT+8, 2024-3-28 17:56 , Processed in 0.066784 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表