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
Post a Comment