我想把mssql里money型的值读出来,然后与一个值比大小,应该怎么写,用asp

解决方案 »

  1.   

    select * from tb where money_col >(=/<) 某值?
      

  2.   

    select * from tb where money字段>50
      

  3.   

    是我没说清楚吗,大致的结构是
    select  * from huiyuan where huiyuan='"&session("huiyuan")&"'
    x=rs("money")
    if x<"&zj&" then
    里面的money是money型的,运行不出来,正确的要怎么写。
    我后面更新的时候conn.execute("Update huiyuan set [money]=[money]-"&zj&" where huiyuan='"&huiyuan&"'")是可以的。
      

  4.   

    如果不行就强行转化.cast(money_col as decimal(18,4))