467,113 Members | 1,303 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,113 developers. It's quick & easy.

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: =.
Jul 26 '07 #1
  • viewed: 7579
Share:
1 Reply
mwasif
Expert 512MB
Moved the thread to relevant forum.
Jul 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by sqlgoogle | last post: by
3 posts views Thread by Munno | last post: by
2 posts views Thread by Al Willis | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.