X
xin9200
Unregistered / Unconfirmed
GUEST, unregistred user!
1.如下是一个 MS SQL存储过程 pro_del 删除tb_pj0、tb_pj9、tb_pj_mx、tb_pj_mx0中相同的记录 我在MS SQL查询分析器 里输入exec pro_del 0001,0002 运行后 显示影响的行数为0 我打开tb_pj0看0001和0002没有被删除· *请教高手 问题在哪?if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[pro_del]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)drop procedure [dbo].[pro_del]GOSET QUOTED_IDENTIFIER ON GOSET ANSI_NULLS ON GOcreate procedure pro_del @pj_noqishi varchar(30), @pj_nozhongzhi varchar(30) as begin delete from tb_pj0 where pj_no>=@pj_noqishi and pj_no<=@pj_nozhongzhi delete from tb_pj9 where pj_no>=@pj_noqishi and pj_no<=@pj_nozhongzhi delete from tb_pj_mx where pj_no>=@pj_noqishi and pj_no<=@pj_nozhongzhi delete from tb_pj_mx0 where pj_no>=@pj_noqishi and pj_no<=@pj_nozhongzhi endGOSET QUOTED_IDENTIFIER OFF GOSET ANSI_NULLS ON GO2.如果该存储过程 可用的话 利用delphi如何调用它 如何进行异常处理