views:

21

answers:

1

how to use prepared statement with aggregate functions ?

A: 

prepare your statement as you would do for any other sql statement, then execute your query, as you would do for any other sql query, and fetch the result. the only difference is that a query with an aggregate function will return only one record containing the result.

Adrien Plisson