Jan 23, 2007 #1 kernal Technical User Feb 27, 2001 415 US How can I replace the first character in a string using an expression? Example: 00000 Results wanted (wanting the first character to be an X): X0000 Help is appreciated.
How can I replace the first character in a string using an expression? Example: 00000 Results wanted (wanting the first character to be an X): X0000 Help is appreciated.
Jan 23, 2007 1 #2 SantaMufasa Technical User Jul 17, 2003 12,588 US Code: select 'X'||substr('00000',2) result from dual; RESUL ----- X0000 Let us know if this resolves your need. Mufasa (aka Dave of Sandy, Utah, USA) [I provide low-cost, remote Database Administration services: www.dasages.com] Upvote 0 Downvote
Code: select 'X'||substr('00000',2) result from dual; RESUL ----- X0000 Let us know if this resolves your need. Mufasa (aka Dave of Sandy, Utah, USA) [I provide low-cost, remote Database Administration services: www.dasages.com]
Jan 23, 2007 Thread starter #3 kernal Technical User Feb 27, 2001 415 US Worked wonderfully. Thanks Dave. Upvote 0 Downvote