db supports your character set
can I send my code in your pv?
You can send it here. Use a pastebin
tablename=1001287524476chats sotoon=('id', 'text', 'date', 'path', 'type') val= ('123399940', 'بچه ها برای اینکه بتونین انتخاب واحد ', '2021-08-30 16:42:58+00:00', '', 'photo') sql = f"INSERT INTO {tablename} {sotoon} VALUES (%s, %s,%s, %s,%s)" mycursor.execute(sql, val) mydb.commit()
Try enclosing sotoon's value outside double quotes (""), e.g sotoon="('sth','sth','sth')"
did not really understand what you are talking about
What's the output of print(f"{sotoon}")?
Обсуждают сегодня