Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import MySQLdb
- conn= MySQLdb.connect("localhost","root","notna99","MixOMat")
- c=conn.cursor()
- c.execute("SELECT Zutat1 FROM Rezepte WHERE RezeptID=1")
- z1=str(c.fetchall())
- z1=z1.strip("(")
- z1=z1.rstrip(")")
- z1=z1.rstrip(",")
- z1=z1.rstrip(")")
- z1=z1.rstrip(",")
- z1=z1.rstrip("L")
- print(z1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement