You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
288 B
MySQL
12 lines
288 B
MySQL
4 years ago
|
DROP TABLE posts;
|
||
|
|
||
|
CREATE TABLE posts (
|
||
|
id SERIAL PRIMARY KEY,
|
||
|
nick CHAR(60) NOT NULL,
|
||
|
date_posted TIMESTAMP DEFAULT Now(),
|
||
|
post_title TEXT NOT NULL
|
||
|
);
|
||
|
|
||
|
INSERT INTO posts (nick, date_posted, post_title)
|
||
|
VALUES ('testing', '2020-03-20 21:17:00', 'Just testing this shit out');
|