我对所程序中所有的金额字段都加密了转换成字符型
加密函数为 ENCODE(tStr as string)
解密函数为 DECODE(tStr as string)我在SELECT语句中如何使用这些函数?比如
select decode(cash) as 现金 from data_sellrecord
加密函数为 ENCODE(tStr as string)
解密函数为 DECODE(tStr as string)我在SELECT语句中如何使用这些函数?比如
select decode(cash) as 现金 from data_sellrecord
--自定义函数加上dbo.
select dbo.decode(cash) as 现金 from data_sellrecord
我刚才也试了
但是不行啊~~~~
函数我是在程序里定义的
我用的是VB6.0+SP4+WINDOWS2003 SP2+ SQL 2000+SQL 2000 SP4