代码段如下
with cmd_gift
.CommandText="pr_buy_id"
.CommandType=4
……
.parameters("v_gift_price")=request.Form("txt_price")
……
.execute() 存储过程里v_gift_price是numeric(12,2) oracle数据库
表单里面输入10.5
打印request.form("txt_price")是10.5
打印.parameters("v_gift_price")也是10.5
执行的时候传入存储过程 执行出来以后发现数值变成10了
以为存储过程中间有问题,在存储过程入口的地方将该变量输出到日志表,发现果然是10
有人碰到过么 在线等
with cmd_gift
.CommandText="pr_buy_id"
.CommandType=4
……
.parameters("v_gift_price")=request.Form("txt_price")
……
.execute() 存储过程里v_gift_price是numeric(12,2) oracle数据库
表单里面输入10.5
打印request.form("txt_price")是10.5
打印.parameters("v_gift_price")也是10.5
执行的时候传入存储过程 执行出来以后发现数值变成10了
以为存储过程中间有问题,在存储过程入口的地方将该变量输出到日志表,发现果然是10
有人碰到过么 在线等
是oracle的问题