how can i format column names and types into python sqlite3?

Don’t put quotes around {parameters}, that turns it into a single parameter definition.

        cursor.execute(f"CREATE TABLE IF NOT EXISTS '{scrub(i)}' ({parameters})")

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top