SQL Like query last match
Posted
by teepusink
on Stack Overflow
See other posts from Stack Overflow
or by teepusink
Published on 2010-06-05T17:22:21Z
Indexed on
2010/06/05
17:32 UTC
Read the original article
Hit count: 193
sql
Hi,
I've a database that has a name field. (i.e Firstname M. Lastname or just Firstname Lastname).
Trying to filter by lastname.
How can I do a query to find the last space?
Something like
select * from person where name like "% a%" (but the space is the last space)
Thanks,
Tee
© Stack Overflow or respective owner