查询数据:
select * from table1 where (NodeID = 2550)
删除数据:
deleted table1 where (GeneralID = 13436)
普通类型字段字符替换:
update table1 set field1=replace(field1,'str1','str2')
ntext类型字段字符替换:
update table1 set field1=replace(cast(field1 as varchar(8000)),'str1','str2')
替换某个字段以a字母结尾的记录中的a字母:
update table1 set Title=replace(Title,'a','') where (title like '%a')