http://www.carolinaclassical.com/scales/circle.html
That's a link to a site explaining it, just a quick site I found.
Looking at modes and learning their order would also be a good idea. If you know the circle of fifths and the order of modes it's easy to play in any mode in any key.
- J