Talk person, all right? Well, I have a problem with my first application – I'm new to DB – of my database as a whole. When I click create data it gives me a huge error and unfortunately it doesn't apply what I want. I'll leave the code for you to help me if possible.
Segue:
código
CREATE TABLE
dbtestesestudos.
cliente(
N_CLIENTE_CLIENTEINT NOT NULL, UNIQUE INDEX
N_CLIENTE_CLIENTE_UNIQUE (
N_CLIENTE_CLIENTE ASC) VISIBLE, PRIMARY KEY (
N_CLIENTE_CLIENTE)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8;
error
Operation failed: There was an error while applying the SQL script to the database. Executing: CREATE TABLE
dbtestesestudos.
cliente(
N_CLIENTE_CLIENTEINT NOT NULL, UNIQUE INDEX
N_CLIENTE_CLIENTE_UNIQUE (
N_CLIENTE_CLIENTE ASC) VISIBLE, PRIMARY KEY (
N_CLIENTE_CLIENTE`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
ERROR 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '
PRIMARY KEY (N_CLIENTE_CLIENTE
))
ENGINE = InnoDB
DEFAULT CHARACTER SET =...' at line 3
SQL Statement:
CREATE TABLE dbtestesestudos
.cliente
(
N_CLIENTE_CLIENTE
INT NOT NULL,
UNIQUE INDEX N_CLIENTE_CLIENTE_UNIQUE
(N_CLIENTE_CLIENTE
ASC) VISIBLE,
PRIMARY KEY (N_CLIENTE_CLIENTE
))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
`
Well, I tried to create, as said, a first application in mysql but this error is appearing and I don't know how to solve it.