MySQL社区

标题: delimiter $ create procedure setCoin(_coin float, _fcoin float, _uid int, _li... [打印本页]

作者: fsdfsfs    时间: 2016-8-12 10:51
标题: delimiter $ create procedure setCoin(_coin float, _fcoin float, _uid int, _li...
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();哪里错了懂的老哥回答下

作者: yflower    时间: 2016-8-12 16:19
declare currentTime DATETIME DEFAULT CURRENT_TIMESTAMP;
时间不能用int类型

参考自:
MySQL存储过程详解 http://www.data.5helpyou.com/article314.html




欢迎光临 MySQL社区 (http://www.mysqlpub.com/) Powered by Discuz! X3.2