日期:2014-05-18 浏览次数:20582 次
CREATE TABLE #USER ([用户] VARCHAR(10), [数据] VARCHAR(1000)) INSERT #USER SELECT '123','0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0200FF00000001000000000000000000FFFFFFFFFFFFFFFFFFFFFF1100FFFFFFFFF31F0000000000000000FFFFFFFFF1000FFFFFFFFF71F0000000000000000' UNION ALL SELECT '456','0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0200FF00000001000000000000000000FFFFFFFFFFFFFFFFFFFFFF1100FFFFFFFFF31F0000000000000000FFFFFFFFF1000FFFFFFFFF71F0000000000000000' UPDATE #USER SET [数据]=REPLACE([数据],'02','88') WHERE [用户]='456' UPDATE #USER SET [数据]=REPLACE([数据],'1000','8888') WHERE [用户]='456' UPDATE #USER SET [数据]=REPLACE([数据],'1100','8888') WHERE [用户]='456' UPDATE #USER SET [数据]=REPLACE([数据],'31F','888') WHERE [用户]='456' SELECT * FROM #USER /* 用户 数据 ---------- ---------------------------------------------------------------------------------------------------------------- 123 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0200FF00000001000000000000000000FFFFFFFFFFFFFFFFFFFFFF1100FFFFFFFFF31F0000000000000000FFFFFFFFF1000FFFFFFFFF71F0000000000000000 456 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8800FF00000008888000000000000000FFFFFFFFFFFFFFFFFFFFFF8888FFFFFFFFF8880000000000000000FFFFFFFFF8888FFFFFFFFF71F0000000000000000 */