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
 Other Forums
 Other Topics
 right justify from num to character

Author  Topic 

Tonoose
Starting Member

1 Post

Posted - 2011-05-04 : 13:15:38
I have an Insert Into Select where one of the fields is 9.2 zoned decimal and is being inserted into an 18 character alpha. I cannot get it to right justify. Suggestions or comments appreciated

Tonoose

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-05-04 : 13:30:30
INSERT INTO myTable(char18column)
SELECT STR(myDecimalcolumn,18,2) FROM myOtherTable
Go to Top of Page
   

- Advertisement -