저장 프로 시저를 만들었지 만이 절차를 실행할 때 오류가 표시됩니다. 어떤 순서로 변수 값을 전달할 지 모르겠다.SQL Server 2008에서 프로 시저 실행
create procedure usp_cust4
@EMPLOYEE_ID float(10),
@EMP_NAME nvarchar(255),
@DEPARTMENT_ID nvarchar(255),
@DEPARTMENT_NAME nvarchar(255),
@EMP_SALARY float(10)
as
update cust
set
[email protected]_NAME,
[email protected]_ID,
[email protected]_NAME,
[email protected]_SALARY
where [email protected]_ID*
나중에 나를 위해 그 일 ..! 즉, 변수 값을 선언 섹션에있는 것과 동일한 순서로 전달해야합니다. 그렇지 않으면 Update 문에서 사용되는 값을 전달해야합니다. –
@manojkumarsingh : 정의 된대로 ** 동일한 순서 **로 전달하거나 매개 변수 이름을 지정해야합니다. **'exec usp_cust4 @EMP_SALARY = 10987, @EMP_NAME = "Manoj"..... ' –
멋진 남자 ..! Nice Explation –