0
私は私が手続きにエラー不正な構文
exec prcrms_crms_cust_id_verify_ins(3344,0,"VERIFIED",'{test:test}','1998-09-09 12:12:12.000','Admin')
を実行しようとすると、それは '3344' の近くに不適切な構文を示しSybaseの
にcreate procedure prcrms_crms_cust_id_verify_ins(@customer_code numeric(12,0),@id_type tinyint,@verification_status varchar(12),@verification_response varchar(255),@verification_date datetime,@add_user varchar(21)) as begin declare @check_id_exists int select @check_id_exists = count(*) from crms_customer_id_verification where (('customer_code'[email protected]_code) and ('id_type'[email protected]_type)) if(@check_id_exists > 0) begin update crms_customer_id_verification set [email protected]_status,[email protected]_response,[email protected]_date where (('customer_code'[email protected]_code) and ('id_type'[email protected]_type)) return @@rowcount end if((@check_id_exists <> null) or (@check_id_exists <> 0)) begin insert into crms_customer_id_verification(customer_code,id_type,verification_status,verification_response,verification_date,add_user) values(@customer_code,@id_type,@verification_status,@verification_response,@verification_date,@add_user) return @@rowcount end end
をプロシージャを作成しました。
括弧のみが問題でした。なぜvarcharを使う必要があるのか分かりません(少なくとも質問とこの回答の両方からは明らかではありません)。 –