Se cambi la forma de insertar y la tabla, debido a trigger 3 del enunciado, el trigger debe genera la id autoincrementada.

This commit is contained in:
GID Projects
2020-06-09 10:33:41 -04:00
parent 8f4b8ccf35
commit 0e888c06c0
2 changed files with 11 additions and 11 deletions

View File

@@ -32,7 +32,7 @@ CREATE TABLE tipos_deportes(
);
CREATE TABLE ciudad(
id_ciudad NUMBER GENERATED ALWAYS as IDENTITY(START with 1 INCREMENT by 1),
id_ciudad NUMBER,
nombre VARCHAR(50),
pais NUMBER,
CONSTRAINT ciudad_pk PRIMARY KEY (id_ciudad),