How to execute TWO OR MORE Sql statement?

Dan O'Neill freeradius at northpb.com
Wed Jul 26 06:12:55 CEST 2006


王世彦 wrote:
> Oh, my have another question about Freeradius.
> 
> I see when the Freeradius receives whatever a request, Freeradius will
> execute ONE SQL statement which is defined in the sql.conf.
> 
> My question is how to make Freeradius to execute TOW OR MORE SQL statement
> when Freeradius receives a request.
> 
> I am new to Freeradius and apologize for asking simple question.

Create a stored procedure in the database that contains all of the SQL
queries necessary. Then call that stored procedure via sql.conf. This
works fine with Postgres.

Dan




More information about the Freeradius-Users mailing list