SQlite查询中的语法错误,(无法执行)

时间:2019-11-22 09:04:03

标签: sql python-3.x sqlite

class Assets:
    def __init__(self):
        conn = sqlite3.connect('FastFood.db')
        c = conn.cursor()
        self.Cash = input('Do you want to enter Cash:')
        self.Equipment = input('Do you want to enter Eqiupment:')
        self.Supplies = input('Do you want to enter Supplies:')
        self.PrepaidInsurance = input('Do you want to enter Prepaid Insurance:')
        self.ARecievale = input('Do you want to enter Accounts Recievable :')
        query = c.execute('INSERT INTO  Financial_Table (Account_Title)VALUES', (self.Cash))
        result = conn.execute(query)
        conn.close()

'''我正试图将条目插入一列中,但它给出了语法错误。''' '''我们共有4栏'''

0 个答案:

没有答案