Method: Select.distinct
- Defined in:
- lib/select.rb
.distinct ⇒ Object
call-seq: Select.distinct -> a_select
Returns a Select class that appends ‘distinct’ to the select clause
Select.distinct[1, :column1, 'book'].to_sql #=> "select distinct 1, column1, 'book'"
17 18 19 |
# File 'lib/select.rb', line 17 def distinct DistinctSelect end |