문제

Hi I am looking to carry out a query were i have 3 different countries specified and id like to make a where statement find all attributes where the country is no = United Kingdom. Any ideas how to do this?

도움이 되었습니까?

해결책

SELECT *
FROM   mytable
WHERE  country <> 'United Kingdom'

다른 팁

Try with:

SELECT *
FROm table
WHERE country <> 'United Kingdom'

Have you tried the inequality operator, <>?

SELECT *
FROM tblAttributes
WHERE Country <> 'United Kingdom'

You can use NOT IN:

SELECT * 
FROM country 
WHERE name NOT IN('United Kingdom')
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top