문제

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?

도움이 되었습니까?

해결책

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%'")
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top