Thanks for your answers, Corion. I'm using MySQL, but I don't think MySQL is preventing multiple statements, since from the Linux prompt I can echo multiple SQL commands and pipe them to a mysql command and they work. From looking below at chacham's answer, it looks as if DBI prevents it, which is fine by me.