请教:sysbase 存储过程问题
<P>初用sysbase ,写了个简单存储过程在PB中调用怎么没执行呀?以下是代码:</P><P> CREATE PROCEDURE dbo.sp_model_prepare;1<BR>/* [ (@param_name datatype [= default] ), ... ]*/<BR> @end_date datetime<BR>AS<BR> BEGIN<BR> truncate table tmp</P>
<P> update statistics tmp<BR> insert into tmpselect id_xh,id_xm,id_je,max(date_fix)<BR> frommain<BR> where date_fix < dateadd(month,1,@end_date)<BR> group by id_xh,id_xm,id_je</P>
<P><BR> END</P>
<P>执行后什么反应也没有,tmp库没变化,跟没执行一样??</P>
页:
[1]