Can't get update statement in SQL Server to work -


i'm attempting execute sql update statement , it's not working. know why ?

update dbo.ebstable  set commandfield = replace(commandfield, '%appl.mbm_aging_file', '%appl.mbm_aging_file)')  command '[%]appl.mbm_aging_file' 

basically, i'm trying add ")" end of data appearing in commandfield field value %appl.mbm_aging_file (the "%" appears in data).

i discovered clause inadequate (like me sql). should read

update dbo.ebstable set commandfield = replace(commandfield, '%appl.mbm_aging_file', '%appl.mbm_aging_file)') command '%[%]appl.mbm_aging_file%'

that statement worked.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -