我对所程序中所有的金额字段都加密了转换成字符型
加密函数为 ENCODE(tStr as string)
解密函数为 DECODE(tStr as string)我在SELECT语句中如何使用这些函数?比如
select decode(cash) as 现金 from data_sellrecord

解决方案 »

  1.   

    select dbo.DECODE(列) from t
    --自定义函数加上dbo.
      

  2.   


    select   dbo.decode(cash)   as   现金   from   data_sellrecord
      

  3.   

    select   dbo.decode(cash)   as   现金   from   data_sellrecord
      

  4.   

    select   dbo.decode(cash)   as   现金   from   data_sellrecord
      

  5.   

    对不起,来晚了,才看到各位给我的回答
    我刚才也试了
    但是不行啊~~~~
    函数我是在程序里定义的
    我用的是VB6.0+SP4+WINDOWS2003 SP2+ SQL 2000+SQL 2000 SP4