CREATE TABLE messages ( id int, text varchar(255), parent int NULL ); insert into messages (id, text, parent) values (1, \'Parent message 1\', NULL), (