Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
K100
Starting Member
4 Posts |
Posted - 2007-07-11 : 04:37:27
|
Hello,i have a problem with return data of select.Select return data 2 digit number, but i want to change this number to 4 digit ( something like: i receive data 23, and i want to receive 0023, if the data is 5 i want to receive 0005, if the data is 105 i want to receive 0105, if the data is 1118 i want to receive 1118). How can i do this? |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-07-11 : 04:38:18
|
Why don't you do this in your ASP front end ? KH[spoiler]Time is always against us[/spoiler] |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-07-11 : 05:28:36
|
In VB, there is Format functionFormat(Rs("col"),"0000") which will do what you wantI hope, you can find similar function in ASP.NETMadhivananFailing to plan is Planning to fail |
|
|
|
|
|