By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,557 Members | 1,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,557 IT Pros & Developers. It's quick & easy.

sql update to a substring

P: 1
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
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 801
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.