Sql 字符串替换

(1) 字符串替换

Update SongADD_EMH0055 SET songno = REPLACE(songno, '231', '233') where songno like '%102231%'

(2) 2个字段拼接成一个字段查询   MaxGroupName   MaxGroupNameEn

select MaxGroupID, cast(MaxGroupName as varchar(50))+'('+cast(MaxGroupNameEn as varchar(50)) + ')'
as MaxGroupName from Business_LBMaxGroup union select '0' as MaxGroupID ,'全部大组' as MaxGroupName

上一篇:Java匹马行天下之教你用学汉语式方法学编程语言


下一篇:homework -06 围棋