[MSSQL] SET ROWCOUNT n
행 수를 제한하는 SET ROWCOUNT 기능은 자주 사용하지 않지만 모르는 것보다 스치듯이라도 한번 알아두면 다음에 찾아볼 일은 없을 것 같음으로 알아두고 넘어가기에 좋다. TEST Table & Data Create CREATE TABLE #tmp_data ( cust_id int, cust_name varchar(10), cust_date varchar(10), cust_eng int, cust_math int ) INSERT INTO #tmp_data VALUES (1,'홍길동','2024-01-01',70,85) INSERT INTO #tmp_data VALUES (2,'홍길동','2024-02-01',75,95) INSERT INTO #tmp_data VALUES (3,'홍길동','2024-0..
2024. 3. 19.