Python

'Connection' object has no attribute 'cursors'

ndlessrain 2021. 1. 25. 21:41
728x90

conn=pymysql.connect(host='localhost',port=3306,user='root',passwd='',db='trade',charset='utf8')

cursor=conn.cursor()

cursor.execute(sql, (v_date, v_name, v_date_from, v_date_to, v_price, v_mean, v_std, v_lower, v_upper, v_txt))

conn.commit()

728x90