Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • sqlite3.OperationalError: near group: syntax error in sqlite3

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 41
    Answer it

    I use sqlite3 library for using database in python. When I want to make a table, I get this error:

    sqlite3.OperationalError: near "group": syntax error
    

    My function that does this:

    def connect():
        conn = sqlite3.connect(dbpath)
        cursor = conn.cursor()
        cursor.execute("CREATE TABLE IF NOT EXISTS names (id INTEGER PRIMARY KEY, name text, group text, act text)")
        conn.commit()
        conn.close()

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: