select a*b from tableselect a-b from table

解决方案 »

  1.   

    不知你的具体需求
    select col1 * col2 from t
    select col1 - col2 from t
      

  2.   

    '查询:select a*b as c from tablename
    '更新:update tablename set c=a*b
      

  3.   

    select a*b as 'a*b'from tableselect a-b as 'a-b'from table
      

  4.   

    select col1 * col2 from t
    select col1 - col2 from t
    select col1 / col2 from t
    select col1 + col2 from t
      

  5.   

    select f1*f2 as 乘积,(case when f1>f2 then f1-f2 else f2-f1 end) as 差的绝对值 from yourTable