我想直接用select列出一个字段和一个参数的乘积作为一个新的字段;我写的语句是这样的‘select field1*:Para from table’....‘parameter.parameterbyname[Para].value = 4’...
不过这样好像一点用也没有,不知道这样写对不对的,请指点一下呢;

解决方案 »

  1.   

    select A*B as C from 表名
      

  2.   

    select A*B as C from 表名
      

  3.   

    写成'select field1*' + 变量 + ' as A from table1'
      

  4.   

    不要用参数,这样写看行不:
    select field1*''+edit1.text+'' as newfield from table1
      

  5.   

    我写成 'select FieldA*' +':Para'+' as A from tabel',但是好像还是不见效的啊,如果用sql.add写出三段的话也是没有效果的;郁闷了