Skip to content

Instantly share code, notes, and snippets.

@prayuditb
Created December 18, 2020 08:50
Show Gist options
  • Save prayuditb/d4d65a2b43e71a81a7df2d4a697ee5eb to your computer and use it in GitHub Desktop.
Save prayuditb/d4d65a2b43e71a81a7df2d4a697ee5eb to your computer and use it in GitHub Desktop.
test_tebengan.sql
create table "user" (
id serial primary key,
first_name varchar(50) not null,
last_name varchar(50)
);
create table "ride" (
id serial primary key,
from_city_name varchar(100) not null,
to_city_name varchar(100) not null,
user_id int not null
)
insert into public."user" (first_name, last_name)
values
('jaka', 'tingkir'),
('tengku', 'umar');
insert into public."ride" (from_city_name, to_city_name, user_id)
values
('Bandung', 'Jakarta', 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment