k="%パン%"
connector = MySQLdb.connect(host="*", port=*, db="*", user="*", passwd="*", charset="utf8")
cursor = connector.cursor()
sql1="SELECT * from * where word like %s"
cursor.execute(sql1, (k,))
cursor.close()
connector.close()
Go to list of users who liked
More than 5 years have passed since last update.
k="%パン%"
connector = MySQLdb.connect(host="*", port=*, db="*", user="*", passwd="*", charset="utf8")
cursor = connector.cursor()
sql1="SELECT * from * where word like %s"
cursor.execute(sql1, (k,))
cursor.close()
connector.close()
Register as a new user and use Qiita more conveniently
Go to list of users who liked