vweb tutorial

This commit is contained in:
Alexander Medvednikov 2019-12-14 05:31:09 +03:00
parent 75c01dec30
commit e99547cd7f
9 changed files with 416 additions and 0 deletions

22
tutorials/blog.sql Normal file
View file

@ -0,0 +1,22 @@
create database blog;
\c blog
drop table articles;
create table articles (
id serial primary key,
title text default '',
text text default ''
);
insert into articles (title, text) values (
'Hello, world!',
'V is great.'
);
insert into articles (title, text) values (
'Second post.',
'Hm... what should I write about?'
);