sqlalchemy.exc.InternalError: ('(pymysql.err.InternalError) (1054, "Unknown column 已经解决

sql = f'''
           insert into `t_datav`(category,paper_id,title,allcount,joincount,score,paper_create_time)  values(
           "mock",{id},{title},{allcount},{joincount},{score},{create_time})
           '''

改:

sql = f'''
insert into `t_datav`(category,paper_id,title,allcount,joincount,score,paper_create_time)  values(
"mock",'{id}','{title}','{allcount}','{joincount}','{score}','{create_time}')
'''

你可能感兴趣的:(mysql)