|Subject||RE: [firebird-support] How to concatenate strings in UPDATE statement ?|
> I've tried following query variants, but all of them report SQL error!Try this
> UPDATE PROJECTS SET CODE = 'J.P.' || SUBSTRING(CODE,3)
> UPDATE PROJECTS SET CODE = ('J.P.' || SUBSTRING(CODE,3))
> UPDATE PROJECTS SET CODE = 'J.P.' + SUBSTRING(CODE,3)
> Can anyone suggest a working solution ?
update projects set code = 'JP' || substring(code from 1 for 3)
Firebird Release Notes, page 28