문제

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