Skip to content

Instantly share code, notes, and snippets.

@dario-javier-rick
Created October 22, 2018 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dario-javier-rick/cce49414e944ffc0564d501257ce1d42 to your computer and use it in GitHub Desktop.
Save dario-javier-rick/cce49414e944ffc0564d501257ce1d42 to your computer and use it in GitHub Desktop.
CREATE DATABASE TP2;
CREATE TABLE persona
(
usuario_id SERIAL PRIMARY KEY,
apellido VARCHAR2(50),
nombre VARCHAR2(50),
usuario VARCHAR2(50),
clave TEXT
);
CREATE TABLE peliculas
(
película_id SERIAL PRIMARY KEY,
nombre VARCHAR2(50)
);
CREATE TABLE pelis_que_vio
(
usuario_id INT,
película_id INT
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment