[eluser]Jason Tan Boon Teck[/eluser]
I'm trying to write a report generator, that makes use of different queries generated from the model, based on what the user chooses. As such the number of columns for these ad hoc views are different.
Counting rows is easy. Is there a way to count the number of columns returned? The queries are complex SQL statements that contains joins. So I cannot use the SQL command to query the table structure.
btw, I'm using PostgreSQL.
TIA. Jason Tan