Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Normally in the datasource, you need to specify the database name. What I suggest you to do is to create different data source for different database so that you do not need to use the "USE database1" command. I have not try to use 2 SQL statement, but it guess it work. You can try.
"dataSources"=>array(
"source1"=>array(
"connectionString"=>"mysql:host=localhost;dbname=database1",
"username"=>"root",
"password"=>"",
"charset"=>"utf8"
),
"source2"=>array(
"connectionString"=>"mysql:host=localhost;dbname=database2",
"username"=>"root",
"password"=>"",
"charset"=>"utf8"
)
)
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo