Created
August 8, 2019 00:12
-
-
Save parzibyte/e85dd06ef69ffea6aa46204d73d68383 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
include_once __DIR__ . "/base_de_datos.php"; | |
$definicionTabla = "CREATE TABLE IF NOT EXISTS videojuegos( | |
id INTEGER PRIMARY KEY AUTOINCREMENT, | |
anio INTEGER NOT NULL, | |
titulo TEXT NOT NULL, | |
genero TEXT NOT NULL | |
);"; | |
#Podemos usar $baseDeDatos porque incluimos el archivo que la crea | |
$resultado = $baseDeDatos->exec($definicionTabla); | |
echo "Tablas creadas correctamente"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment