MySQL Python MySQLdb 문제 (TypeError : % d 형식 : str이 아닌 숫자가 필요함)
다음 삽입 작업을 시도하고 있습니다. cursor.execute(""" insert into tree (id,parent_id,level,description,code,start,end) values (%d,%d,%d,%s,%s,%f,%f) """, (1,1,1,'abc','def',1,1) ) 내 MYSQL 테이블의 구조는 다음과 같습니다. id int(255), parent_id int(255), level int(11), description varchar(255), code varchar(255), start decimal(25,4), end decimal(25,4) 그러나 프로그램을 실행할 때 오류가 발생합니다. "파일"/usr/lib/pymodules/python2.6/MySQLdb/curso..
2020. 10. 10.