MySQL Bar Chart from the Command Line

MySQL Command Line Bar Chart
I just ran accross this really cool method of generating a bar chart from the mysql command line using the mysql repeat command:
mysql> select date_format( create_time, '%Y-%m-%d') dt, repeat( '#', count(id)/20.0+1) dt from result group by dt;
Comand line stats are addictive. Nothing like real time… enjoy. Thanks to snipplr.
Comments Off
