Hi,
Help needed please.
Basically I am wanting to update a 16 digit character string which is in a table called say accounts.
If the account no. field is say 050256238956874 5 I want to amend every record by taking away the leading zero of the account no. and replace it with a 9.
So the result would be 950256238956874 5 and I want to run this so that it will update every account no. in the accounts table.
I know its an update statement but wasn't sure how to pull the first character in the string out and whether I used the replace statement as well?!
I am new to sql and have been trawling the net and books for answers but come up with nothing as yet so any help would be amazing!!!
Thanks
Graeme
Help needed please.
Basically I am wanting to update a 16 digit character string which is in a table called say accounts.
If the account no. field is say 050256238956874 5 I want to amend every record by taking away the leading zero of the account no. and replace it with a 9.
So the result would be 950256238956874 5 and I want to run this so that it will update every account no. in the accounts table.
I know its an update statement but wasn't sure how to pull the first character in the string out and whether I used the replace statement as well?!
I am new to sql and have been trawling the net and books for answers but come up with nothing as yet so any help would be amazing!!!
Thanks
Graeme
Comment