Answer the question
In order to leave comments, you need to log in
Where is the error when creating the table?
I'm trying to create a table in a database in Oracle, but an error occurs.
I use the import cx_Oracle module
queryCreate = """CREATE TABLE ST2018 (
ID_SCH VARCHAR2(25 BYTE),
DR DATE,
FAM VARCHAR2(40 BYTE),
IM VARCHAR2(40 BYTE),
OT VARCHAR2(40 BYTE),
GLP VARCHAR2(6 BYTE),
)
TABLESPACE SYSTEM
STORAGE (INITIAL 64 K
MAXEXTENTS UNLIMITED)
LOGGING;
CREATE UNIQUE INDEX UK_ST2018 ON ST2018 (ID_SCH, GLP)
"""
dbcur.execute(queryCreate)
db.commit()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question