adasi Posted August 10, 2011 Share Posted August 10, 2011 Hey..............We can make memory table in MySQL lake below.. mysql> CREATE TABLE test ENGINE=MEMORY -> SELECT ip,SUM(downloads) AS down -> FROM log_table GROUP BY ip;mysql> SELECT COUNT(ip),AVG(down) FROM test;mysql> DROP TABLE test;[/code][/code]But when we get memory table detail to the jasper report.That mean when we build jasper reportwe want to write report query..so we want to make above query in jasper report..How can we do that?[/code] Post Edited by adasi at 08/10/2011 16:39 Link to comment Share on other sites More sharing options...
svenn Posted August 10, 2011 Share Posted August 10, 2011 I'm pretty sure the query window only supports select statements Post Edited by svenn at 08/10/2011 17:17 Link to comment Share on other sites More sharing options...
adasi Posted August 11, 2011 Author Share Posted August 11, 2011 Hey... Is there a eny method to get MyQSL memory table value to the jasper report.... Link to comment Share on other sites More sharing options...
szaharia Posted August 11, 2011 Share Posted August 11, 2011 Hi,Is it essential to use those in-memory tables? An equivalent query would have the same results.HTH,sandaCode:SELECT COUNT(ip),AVG(down) FROM (SELECT ip,SUM(downloads) AS downFROM log_table GROUP BY ip) as test Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now