Columns defines which columns to retrive. You should call From() after Columns() if you want to query data from an specific table. s.Columns("name", "last_name").From(...) It is also possible to use an alias for the column, this could be handy if you plan to use the alias later, use the "AS" keyw
(columns ...interface{})
| 53 | // |
| 54 | // s.Columns(db.Func("MAX", "id")) |
| 55 | Columns(columns ...interface{}) Selector |
| 56 | |
| 57 | // From represents a FROM clause and is tipically used after Columns(). |
| 58 | // |
no outgoing calls