Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 17, 2019 21:46
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 parzibyte/20608ba172cc87e9eb300edd49b4154e to your computer and use it in GitHub Desktop.
Save parzibyte/20608ba172cc87e9eb300edd49b4154e to your computer and use it in GitHub Desktop.
/*
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