CREATE TABLE hohoho (a varchar (1000), b integer, FOREIGN KEY haha (b) references xyz (id) match full on delete cascade)
info at phpclasses dot org