how to create a table with sha1 or md5 as table name in sqlite3 using python, i am getting Exception OperationalError saying unrecognized token, is there any alternate method
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m assuming you’re using value of function like md5.hexdigest() as a table name. If so, then you need to take into account fact that hash value may start from a digit. SQLite doesn’t allow you to start table name from a digit. The simplest solution would be to add some kind of prefix, like: