-
-
Save parzibyte/20608ba172cc87e9eb300edd49b4154e 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
/* | |
CRUD con PostgreSQL y PHP | |
@author parzibyte [parzibyte.me/blog] | |
@date 2019-06-17 | |
================================ | |
Este archivo define la tabla e inserta algunos datos | |
para trabajar | |
================================ | |
*/ | |
CREATE TABLE mascotas( | |
id serial primary key, | |
nombre varchar(50) NOT NULL, | |
edad smallint NOT NULL | |
); | |
insert into mascotas | |
(nombre, edad) | |
values | |
('Maggie', 3), | |
('Guayaba', 2), | |
('Capuchina', 2), | |
('Snowball', 1), | |
('Panqué', 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment