table삭제 (1) 썸네일형 리스트형 table 모두 삭제 하는 방법 table 모두 삭제하는 방법 SET @tables = NULL; SELECT GROUP_CONCAT(table_schema, '.', table_name) INTO @tables FROM information_schema.tables WHERE table_schema = '여기에 데이터베이스 명'; -- specify DB name here. SET @tables = CONCAT('DROP TABLE ', @tables); PREPARE stmt FROM @tables; EXECUTE stmt; DEALLOCATE PREPARE stmt; 데이터베이스를 날리지 않고 안에 있는 테이블을 모두 한번에 삭제하는 명령어 입니다.중앙에 보시면 여기에 데이터베이스 명 이곳에 해당 데이터베이스명으로 넣어주고 돌리시.. 이전 1 다음