php - Selecting distinct column values in NOTORM -


my mysql table this:

 'id'       'name'    'type'  1           name1                 2           name2       b   3           name3          4           name4       c   5           name5       c 

how can distinct types i.e a, b, c in notorm php.

the api docs don't cover off in intuitive manner, need use group function distinct values:

$table->group($columns[, $having]) 

set group , having

this same (not @ db level, same @ output level) of running distinct.

there isn't anchor exact part, in here: http://www.notorm.com/#api


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -