I am trying to create a table using SQL commands on an Oracle database 12C Enterprise Edition 12.2.0.1.0.
I want a new TRANS_num to be created when I add a new values to the table starting at 1 and incrementing by one.
my code is as follows:
CREATE TABLE Sales
(
TRANS_num INTEGER IDENTITY (1,1) PRIMARY KEY,
c_name VARCHAR (35) NOT NULL,
c_address VARCHAR (35) NOT NULL,
c_phonenumber CHAR (10) NOT NULL,
);
This results in the below image after I copy and paste into Tera Term and run the code
any ideas at all? I have browsed some of the answers on here for similar problems but nothing seems to fix it. I am very new to coding, sorry if it is something simple.