navicat 无法传入 时间格式 的字符串变量,该怎么处理

navicat 无法传入 时间格式 的字符串变量

IN tcurpostime varchar(20)

 UPDATE lastmsg SET curpostime=tcurpostime,latitude=tlatitude,longitude=tlongitude,speed=tspeed,gettime=NOW() WHERE gpssn=tgpssn;

传入 变量 2012-04-15 21:11:56 就出错,去掉 “-” “:” 这些时间符号的话就可以。。  

怎么解决啊 mysql 数据库



IN tcurpostime datetime呢




你的lastmsg 表中的字段curpostime是什么类型日期还是字符?




在命令行可以执行吗 报的什么错




mysql> create procedure sp_test_1(ad datetime)

begin 

update test2 set a=ad;

end

-> $

Query OK, 0 rows affected

mysql> call sp_test_1(‘2012-01-01 00:00:00’);

-> $

Query OK, 0 rows affected

mysql>

navicat 无法传入 时间格式 的字符串变量,该怎么处理

相关文章:

你感兴趣的文章:

标签云: