|
-
SQL question for -- substr
Hi,
I want to get the last 3 characters of a string. How can I get it?
Thanks!
-
substr(length('ABCDEFG')-2,3), i would think.
-
-
Even more simple and straightforward:
substr('ABCDEFG',-3)
Jurij Modic
ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
-
Originally posted by jmodic
Even more simple and straightforward:
substr('ABCDEFG',-3)
Oooooooooo!
You see if I read the documentation more often, I'd have known that.
-
Hi slimdave,
You've got to give it to Jurij, he's good. But don't let him know I said that, he might get big headed
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|