Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. from __future__ import print_function
  2.  
  3. import pymysql
  4.  
  5. conn = pymysql.connect()
  6.  
  7. cur = conn.cursor()
  8.  
  9. cur.execute("SELECT `nick` FROM `seokat_users`")
  10.  
  11. print("Cursor description: {}".format(cur.description))
  12.  
  13. print()
  14.  
  15. for row in cur:
  16. print(row)
  17.  
  18. cur.close()
  19. conn.close()
  20.  
  21.  
  22. seokat_sites
  23.  
  24. id | date | title | description | keywords | url
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement