1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/tutorials/code/blog/blog.sql
Alexander Medvednikov 562f24336d add ./v2 to gitignore
2019-12-17 01:21:18 +03:00

23 lines
334 B
SQL

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?'
);