0
搜查有能力發現User
具有first_name
:搜查相反謂詞:本
User.search(:first_name_present => "1")
和相對的,不帶first_name
或空白髮現User
:
User.search(:first_name_blank => "1")
。
不幸的是,
User.search(:first_name_present => "0")
不等於與
User.search(:first_name_blank => "1")
。
反正有做
User.search(:first_name_present => "0")
等於
User.search(:first_name_blank => "1")
,
或
User.search(:first_name_present => "1")
等於
User.search(:first_name_blank => "0")
?
THX
是的。這正是我已經做的。我只是好奇,是否有空白/現在的反對的直接謂詞? Thx順便說一句。 – raymondralibi