Вопрос

I'm working on a query to select from my location row all entries that have a '/' in the 4th position. I've tried doing stuff like

WHERE location LIKE '___/'

etc, but I'm not sure what I could or should be using. Thanks a lot!

Это было полезно?

Решение

If you're using SQL server then this will work:

SELECT *
FROM table
where  SUBSTRING(location,4,1) = '/'

Другие советы

You may try using this

WHERE SUBSTRING ( location ,4 , 1 ) = '/'
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top