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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Convert a numeric field

Author  Topic 

goyosito
Starting Member

1 Post

Posted - 2005-05-06 : 16:43:17
I'm going to explain my problem like an example>
I wanna convert for example all numeric data (e.g. 123 to 1,2,3 and after that in 1,23) and I don't know how can I do this?

nathans
Aged Yak Warrior

938 Posts

Posted - 2005-05-06 : 17:10:23
Please post with some DML that can run in QA. And note the resultset you desire.

Nathan

for example:

declare @test table(test_num int)
insert into @test select 123 union select 456

select * from @test
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-05-07 : 01:43:20
Use Left and Right Functions


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -