SELECT db.User, db.Host, db.Db FROM db WHERE (db.Db LIKE 'test%'); DELETE FROM db WHERE (db.Db LIKE 'test%');