RTrim not working in sql server 2005-2008 -


looked on net find solution

could tell me why following not work?am missing obvious!!

select rtrim('99999        ')  

you cannot see above after 99999 have many empty spaces.

my column contains numbers , do

select left(myfield, 8)  

and work don't know length of column.

any suggestions?

thanks

for rtrim can use

declare @temp varchar(100) set @temp = '99999       '  select rtrim(@temp)  

output:= 99999


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -