我目前的查询是:
Select Distinct
SomeDay.SomeDayID, SomeDay.FolderName, SomeDay.FolderColor
from
SomeDay, SomeDayEvent
where
SomeDay.SomeDayID != 4,3,2,1;
答案 0 :(得分:8)
我想你想要:
Select Distinct
SomeDay.SomeDayID, SomeDay.FolderName, SomeDay.FolderColor
from
SomeDay, SomeDayEvent
where
SomeDay.SomeDayID not in (4,3,2,1)
答案 1 :(得分:0)
这是您的问题所在。
Select Distinct
SomeDay.SomeDayID, SomeDay.FolderName, SomeDay.FolderColor
from
SomeDay, SomeDayEvent
where
SomeDay.SomeDayID>4;
答案 2 :(得分:-1)
这应该是
Select Distinct
SomeDay.SomeDayID, SomeDay.FolderName, SomeDay.FolderColor
from
SomeDay, SomeDayEvent
where
SomeDay.SomeDayID != 4
and
SomeDay.SomeDayID != 3
and
SomeDay.SomeDayID != 2
and
SomeDay.SomeDayID != 1;