난
내가 설명 및 ID 필드 인 테이블 을 가지며이 값많은 records.should 커서를 사용하여 업데이 트합니까?
1 Descript1
2 Descript2
3 Descript3
.. ......
.. ......
1000 Descript1000
함께 표 1000 레코드를 삽입한다고 가정 MS SQL 서버 (TSQL)의 업데이트에 문제가 은 내가
1 Description1
2 Description2
3 Description3
......
......
1000 Description1000
내가 커서를 사용해야 기록 아래 같은이 1000 레코드를 변경하는 방법? 내가이 쿼리를 작성하지만
while @Counter<=1000000
begin
update Person set Description='Descripton'+CONVERT(nvarchar(15),@Counter) where ID>=1
set @[email protected]+1
end
이 _much_ 빠른 행 단위보다 (예를 들어, while 루프, 커서 등). – Bridge