Använd informationsschemat: SELECT table_name AS c FROM information_schema.tables WHERE table_schema = DATABASE()