source: orange/orange/doc/modules/sql1.py @ 2429:2bd4005e5b2e

Revision 2429:2bd4005e5b2e, 345 bytes checked in by blaz <blaz.zupan@…>, 8 years ago (diff)

files providing documentation for orngMySQL module

Line 
1# Description: Reads a data base from MySQL
2# Category:    file formats
3# Classes:     orngMySQL.Connect
4# Referenced:  orngMySQL.htm
5
6import orange, orngMySQL
7
8t = orngMySQL.Connect('localhost','root','','test')
9data = t.query ("SELECT * FROM bus WHERE line='10'")
10for x in data:
11    print x
12
13print
14for a in data.domain.attributes:
15    print a
Note: See TracBrowser for help on using the repository browser.