Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import MySQLdb
  2. conn= MySQLdb.connect("localhost","root","notna99","MixOMat")
  3. c=conn.cursor()
  4. c.execute("SELECT Zutat1 FROM Rezepte WHERE RezeptID=1")
  5. z1=str(c.fetchall())
  6. z1=z1.strip("(")
  7. z1=z1.rstrip(")")
  8. z1=z1.rstrip(",")
  9. z1=z1.rstrip(")")
  10. z1=z1.rstrip(",")
  11. z1=z1.rstrip("L")
  12. print(z1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement