sql update to a substring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • braintrust
    New Member
    • Jul 2007
    • 1

    #1

    sql update to a substring

    Can I use SQL (in an AS400 environment) to update a substring of a field?

    In this example, the update to the substring is conditional.

    Follows is the SQL syntax I used and the error message I received:


    update a04bsydtaa/bsyglgp set substr (lggl#,5,4) = '0010' where lghsp# = 999


    Token ( was not valid. Valid tokens: =.
  • mwasif
    Recognized Expert Contributor
    • Jul 2006
    • 802

    #2
    Moved the thread to relevant forum.

    Comment

    Working...