顯示具有 not 標籤的文章。 顯示所有文章
顯示具有 not 標籤的文章。 顯示所有文章

2008年7月17日 星期四

sql, not, <>, in

User.find(:all, :conditions => ["id not in (?)",[2,3,5]]).map(&:id)
id <>(?)
not = <>