我用下面的语句
select sum(Log_TestBuy_UseMoney) as a1 from BeiSen_log where log_usersid=5
执行结果是null
那么我如何来读取这个a1值??
我这样来读取说错误。
temp2=Info2.GetDecimal(0);
我应怎么办??
...全文
4913打赏收藏
******大家帮帮我看看*****
我用下面的语句 select sum(Log_TestBuy_UseMoney) as a1 from BeiSen_log where log_usersid=5 执行结果是null 那么我如何来读取这个a1值?? 我这样来读取说错误。 temp2=Info2.GetDecimal(0); 我应怎么办??
select sum(Log_TestBuy_UseMoney) as a1 from BeiSen_log where log_usersid=5
执行有结果用temp2=Info2.GetDecimal来记取没有问题
piaoxue 说:
但是,如果结果是null,用temp2=Info2.GetDecimal就不行