【发布时间】:2014-04-27 21:49:15
【问题描述】:
我的问题涉及 python 我正在通过数据库搜索,我想查询 mysql : Species Common_name, genus and species of 序列以“MDPSSID”开头。
有什么建议吗?
【问题讨论】:
-
您好,一般来说,首先实际向我们展示一些努力被认为是一种好习惯 :)
标签: python mysql bioinformatics
我的问题涉及 python 我正在通过数据库搜索,我想查询 mysql : Species Common_name, genus and species of 序列以“MDPSSID”开头。
有什么建议吗?
【问题讨论】:
标签: python mysql bioinformatics
试试
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%'")
【讨论】: