I need to change a single character in a 20 byte field. I tried using the SUBSTRING operation but when I run it I lose everything in the field. I don't think I have the syntax right. My table name is SECGROUP.
group_id x(10)
group_actions x(20)
exp_days x(03)
I need to change the tenth position in the field group_actions from a '1' to a '0'.
Here is my sql:
exec sql update =SECGROUP
set group_actions = substring('0', from 10 for 1)
where group_id = 'JCPENY'
what am I doing wrong?
group_id x(10)
group_actions x(20)
exp_days x(03)
I need to change the tenth position in the field group_actions from a '1' to a '0'.
Here is my sql:
exec sql update =SECGROUP
set group_actions = substring('0', from 10 for 1)
where group_id = 'JCPENY'
what am I doing wrong?