We Recommend

SQL Cookbook SQL Cookbook
Written in O'Reilly's popular Problem/Solution/Discussion style, the SQL Cookbook is sure to please. Anthony's credo is: "When it comes down to it, we all go to work, we all have bills to pay, and we all want to go home at a reasonable time and enjoy what's still available of our days." The SQL Cookbook moves quickly from problem to solution, saving you time each step of the way.


Posted By

zingo on 10/19/07


Tagged

mysql database sql cli


Versions (?)


Generate Simple Bar Charts From a MySQL Prompt


Published in: SQL 


URL: http://www.squarebits.com/blog/2006/11/generate_simple.html

You can generate a simple bar chart of the values by executing this command...

  1. SELECT Name, Value FROM Month;
  2. SELECT Name, REPEAT("#", Value/20.0+1) Graph FROM Month;

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: Yeah on January 18, 2008

Great snippet. Thank you.

You need to login to post a comment.