Created
October 18, 2013 19:54
-
-
Save ricardosiri68/7047246 to your computer and use it in GitHub Desktop.
hola a todos, estoy haciendo un trabajo practico donde tengo que armar una web de ventas de articulos donde se deben hacer los casos de usos mas dificiles por asi decirlo. para hacer el buscador, primero deberia de poder cargar los articulos, y para cargar los articulos antes deberia de organizar bien el tema de categorias y caracteristicas el a…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE categorias | |
( | |
'id' INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, | |
'nombre' VARCHAR(255) UNIQUE NOT NULL | |
); | |
CREATE TABLE subcategorias | |
( | |
'id' INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, | |
'categoria_id' INT(11) NOT NULL REFERENCES categoria(id), | |
'nombre' VARCHAR(255) UNIQUE NOT NULL | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment