SET(Transact-SQL)

적용 대상: SQL Server Azure SQL 데이터베이스Azure SQL Managed Instance

커서에 대한 참조가 들어 있는 변수 또는 저장 프로시저 OUTPUT 매개 변수의 데이터 형식입니다.

설명

cursor 데이터 형식을 가진 변수와 매개 변수를 참조할 수 있는 작업은 다음과 같습니다.

  • DECLARE @local_variable 및 SET @local_variable
  • OPEN, FETCH, CLOSE 및 DEALLOCATE 커서 문
  • 저장 프로시저 출력 매개 변수
  • CURSOR_STATUS 함수
  • sp_cursor_list, sp_describe_cursor, sp_describe_cursor_tablessp_describe_cursor_columns 시스템 저장 프로시저.

sp_cursor_listsp_describe_cursorcursor_name 출력 열은 커서 변수의 이름을 반환합니다.

cursor 데이터 형식으로 만들어진 모든 변수는 Null을 허용합니다.

cursor 데이터 형식은 CREATE TABLE 문에 있는 열에서 사용할 수 없습니다.

참고 항목

CAST 및 CONVERT(Transact-SQL)
CURSOR_STATUS(Transact-SQL)
데이터 형식 변환(데이터베이스 엔진)
데이터 형식(Transact-SQL)
DECLARE CURSOR(Transact-SQL)
DECLARE @local_variable (Transact-SQL)
SET @local_variable (Transact-SQL)