IMO what you want is the QueryColumns(sql) API
# general
g
IMO what you want is the QueryColumns(sql) API