v/tutorials/blog.sql

23 lines
334 B
MySQL
Raw Normal View History

2019-12-14 03:31:09 +01:00
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?'
);