sqlcommand.executescalar ()를 사용하여 쿼리에서 스칼라 값을 검색하고 int 데이터 유형으로 캐스팅합니다. )에서 table_name \";int count = (int) cmd.executescalar ();