Re: query
- From: "Warren Brunk" <wbrunk@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 Oct 2006 22:08:44 -0700
you can concatenate the data using a + sign.
Select '00' + cast(ColumnNameHere as varchar(255)) from tablename
--
/*
Warren Brunk - MCITP - SQL 2005, MCDBA
www.techintsolutions.com
Tech Blog - www.technologyis.com
*/
"Tiffany" <Tiffany@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:47F589A4-FD90-42C0-8833-6D3D93E28C0A@xxxxxxxxxxxxxxxx
hi,
Have a problem and hope someone can help.
I have a column which consists of numbers such as
123
235
456
888
etc
How can i write a simple query to change them to
00123
00235
00456
00888
etc
Kindly advise.
Thank you very much
.
- Prev by Date: Re: Capture Before/After data on Multirow Updates
- Next by Date: Re: query
- Previous by thread: Re: Capture Before/After data on Multirow Updates
- Next by thread: Re: query
- Index(es):
Relevant Pages
|
|