请问chargedata.clientdataset_Inv.commandtext:=('select SYSNAME as sysname from system where SYSCODE=:syscode');
和chargedata.clientdataset_Inv.commandtext:='select SYSNAME as sysname from system where SYSCODE=:syscode';
那个是对的?我发现两个都可以通过编译?请教大家了。

解决方案 »

  1.   

    顺便请教楼上,对于StoredProc在两层中用execproc;请教在三层中StoredProc的执行用什么语句啊?(用clientdataset连datasetprovider,datasetprovider指向StoredProc)
      

  2.   

    我发现在两层中SQL语句的执行用execproc,而在三层中,通过clientdataset来传递参数的。
    所以,我用execute的,对吗?
      

  3.   

    用不用exec是看你的语句要不要返回结果集
      

  4.   

    对呀,在三层中,对于不要返回数据集的,用什么语句啊?(两层中用EXEC)