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
 General SQL Server Forums
 New to SQL Server Programming
 Easy extract

Author  Topic 

Amber_Deslaurier
Starting Member

40 Posts

Posted - 2010-07-02 : 18:18:32
Hi,

I'm searching an easy way to extract charachters from the right 21 to be exact.... I can use substring but is there another way?

Example:

12345678901234567890

would be:

1234567890

Thanks

Amber

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2010-07-02 : 19:06:54

select right('12345678901234567890',10) ? Be more specific in your request if you want a better answer. And give a better example, right and left produce the same result for this example, and your example only has 20 characters in it


Jim

Everyday I learn something that somebody else already knew
Go to Top of Page
   

- Advertisement -