| 发表于:2007-07-11 21:06:572楼 得分:0 |
str1 = "ps12.p12_4m " + mm tstr = " select " + str1 + " from ps12 " + " where ps12.p12_year=? and ps12.p12_prdtcode=? and ps12.p12_whouse=? " prepare sqlsa from :tstr using sqlca; open dynamic lastqty_cur using :yy,:code,:whouse6; if sqlca.sqlcode = 0 then fetch lastqty_cur into :this.lastqty; if isnull(lastqty) then lastqty = 0 end if close lastqty_cur; end if 給個例子 | | |
|