下面语句错在哪里OleDbCommand cmd2 = new OleDbCommand("select sum(inv_sum_money)*6.75 from invoice where month(post_date)='" + month +" ' and paid_unit='USD'",con);string usd = cmd2.ExecuteScalar().ToString();double aaa = usd == null 0 :Conver
来源:学生作业帮助网 编辑:作业帮 时间:2024/05/29 05:59:28
下面语句错在哪里
OleDbCommand cmd2 = new OleDbCommand("select sum(inv_sum_money)*6.75 from invoice where month(post_date)='" + month +" ' and paid_unit='USD'",con);
string usd = cmd2.ExecuteScalar().ToString();
double aaa = usd == null 0 :Convert.ToDouble(usd);
Response.Write(aaa);
当符合查询条件的记录为空时报错:
倒数第2句报错,输入字符窜的格式不正确,将一个字符串转换为DateTime的时候,先分析该字符串以获取日期,然后将每个变量放置到DateTime对象中
我不明白我根本没有转换datetiem类型啊,为什么会报错!
Convert.ToDouble(usd);
转化为double,只有符合double的字符串才能转哦,null或空也会报错
下面语句错在哪里OleDbCommand cmd2 = new OleDbCommand(select sum(inv_sum_money)*6.75 from invoice where month(post_date)=' + month + ' and paid_unit='USD',con);string usd = cmd2.ExecuteScalar().ToString();double aaa = usd == null 0 :Conver
下面的离子方程式错在哪里
下面Java语句错在哪里了Eclipse显示加分后成绩和加了count次那两行错了,可我不知道哪里错了,输入状态确定是英文的.
下面两幅图错在哪里?
C语言中这个赋值语句正确吗?为什么?y=int(x);这个语句错在哪里?
下面句子语病在哪里?
怎么在matlab中用if语句表示下面的语句:怎么在matlab中用if语句表示下面的语句:当X=
我想知道我下面这句话错在哪里
下面的题解法错在哪里,正确如何解?
高数题,下面的两种方法错在哪里?
高数,下面两种情况错在哪里
一下语句哪里错误
请问在C程序中下面这个语句表示什么意思?return;它与return0;语句什么区别
下面语句错误的是?
题目:下面的做法对不对? 如果不对,请指出错在哪里, 并改正
下面这句英语错在哪里?British Airways is one of the busiest international airline.
在课外阅读中,你一定积累了一些优美语句,请选择几句抄在下面.
C语言中for语句的循环体可以为空吗?看看下面的程序哪里错了!#include#includevoid main(){int a,b,M,E,R,Y,MERRY1,MERRY2,MERRY;for(M=1;M