From vishalgupta1973 at icloud.com Mon Jun 22 13:58:21 2020 From: vishalgupta1973 at icloud.com (Vishal Gupta) Date: Mon, 22 Jun 2020 23:28:21 +0530 Subject: [DB-SIG] PEP 249 ( Im getting syntax error) Message-ID: <464AED17-A351-4A3C-978E-EE1BF24A749D@icloud.com> mydatatables.execute('''CREATE TABLES STUDENTS ( studentID INTEGER PRIMARY AUTOINCREMENT KEY, CLASS INTEGER, SECTION TEXT (1) NOT NULL, ROLLNO INTEGER (2) NOT NULL, MARKS REAL NOT NULL, RANKING INTEGER (2) NOT NULL, INTEREST TEXT (10) , SPORTS TEXT (10) NOT NULL, CODING BOOLEAN NOT NULL);''') mydatabase.close() SyntaxError: multiple statements found while compiling a single statement May i request you to kindly tell what is the error in this code??? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dieter at handshake.de Wed Jun 24 12:24:23 2020 From: dieter at handshake.de (Dieter Maurer) Date: Wed, 24 Jun 2020 18:24:23 +0200 Subject: [DB-SIG] PEP 249 ( Im getting syntax error) In-Reply-To: <464AED17-A351-4A3C-978E-EE1BF24A749D@icloud.com> References: <464AED17-A351-4A3C-978E-EE1BF24A749D@icloud.com> Message-ID: <24307.32311.893275.394490@ixdm.fritz.box> Vishal Gupta wrote at 2020-6-22 23:28 +0530: >mydatatables.execute('''CREATE TABLES STUDENTS ( >studentID INTEGER PRIMARY AUTOINCREMENT KEY, >CLASS INTEGER, >SECTION TEXT (1) NOT NULL, >ROLLNO INTEGER (2) NOT NULL, >MARKS REAL NOT NULL, >RANKING INTEGER (2) NOT NULL, >INTEREST TEXT (10) , >SPORTS TEXT (10) NOT NULL, >CODING BOOLEAN NOT NULL);''') >mydatabase.close() > >SyntaxError: multiple statements found while compiling a single statement While I do not see multiple statements, a see a "CREATE TABLES" which almost surely should by "CREATE TABLE" (without "S" suffix). From anthony.tuininga at gmail.com Fri Jun 26 13:15:52 2020 From: anthony.tuininga at gmail.com (Anthony Tuininga) Date: Fri, 26 Jun 2020 11:15:52 -0600 Subject: [DB-SIG] cx_Oracle 8.0 Message-ID: What is cx_Oracle? cx_Oracle is a Python extension module that enables access to Oracle Database for Python and conforms to the Python database API 2.0 specifications with a number of enhancements. Where do I get it? https://oracle.github.io/python-cx_Oracle The easiest method to install/upgrade cx_Oracle is via pip as in python -m pip install cx_Oracle --upgrade What's new? See the full release notes for all of the details: https://cx-oracle.readthedocs.io/en/latest/release_notes.html#version-8-0-june-2020 Please provide any feedback via GitHub issues ( https://github.com/oracle/python-cx_Oracle/issues). -------------- next part -------------- An HTML attachment was scrubbed... URL: