3
I don’t know if it’s my glasses that are in trouble, but I can’t see where I’m going wrong. If you can help me.
I read that the mistake could be happening by the way I’m declaring mine PRIMARY KEY
, but I tried it three different ways and it didn’t work.
CREATE TABLE USUARIO_BI_TREINAMENTO_ATM(
ID NUMBER(22) NOT NULL,
USER VARCHAR2(2000) NOT NULL,
PASSWORD VARCHAR2(2000) NOT NULL,
TOKEN VARCHAR2(400),
CONSTRAINT USUARIO_BI_TREINAMENTO_PK PRIMARY KEY (ID)
);
The error is returned:
Error from line : 1 on command -
ORA-00904: Invalid identifier
It seems to me that you are using Oracle and not Microsoft SQL Server. See the list of reserved words in https://docs.oracle.com/cd/B19306_01/em.102/b40103/app_oracle_reserved_words.htm or check the view
V$RESERVED_WORDS
.– anonimo
Yes, I am, thank you for observing.
– ketts