Pregunta

My question deals with python I'm searching through a data base and I want to query mysql for this: Species Common_name, genus and species of with the sequence start with “MDPSSID”.

Any Suggestions?

¿Fue útil?

Solución

Try

import MySQLdb
db = MySQLdb.connect(host="localhost",
                     user="user",
                      passwd="password", 
                      db="database") 
cur = db.cursor() 
cur.execute("SELECT common_name , genus , species  FROM table WHERE sequence LIKE 'MDPSSID%'")
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top