一个关于modify()函数的问题
<p>在使用modify()函数的时候总是出现:sqlstyte=37000 syntax erroe or access violation:syntax error near'(end of line)' on line 1 错误提示。我不明白是什么意思<br/>这样用modify()对么?:<br/>dw_1.settransobject(sqlca)<br/>string ls_origin,ls_select<br/>string ls_perno='00000017' //原来是变量的,但找不到原因,所以直接赋值了<br/>ls_origin=dw_1.describe("datawindow.table.select")<br/>ls_select="datawindow.table.select ='"+ ls_origin +"where td_paperno=" + ls_perno +"'"<br/>dw_1.modify(ls_select)<br/>dw_1.retrieve()<br/>还有,我跟踪的ls_origin的值是: SELECT ~"glebeannal~".~"td_sign~" , ~"glebeannal~".~"td_glebeunit~" , ~"glebeannal~".~"td_glebeplace~" , ~"glebeannal~".~"td_paperno~" FROM ~"glebeannal~" WHERE ( ~"glebeannal~".~"td_mark~" = '0' ) ORDER BY ~"glebeannal~".~"td_paperno~" ASC <br/>ls_select的值是:datawindow.table.select =' SELECT ~"glebeannal~".~"td_sign~" , ~"glebeannal~".~"td_glebeunit~" , ~"glebeannal~".~"td_glebeplace~" , ~"glebeannal~".~"td_paperno~" FROM ~"glebeannal~" WHERE ( ~"glebeannal~".~"td_mark~" = '0' ) ORDER BY ~"glebeannal~".~"td_paperno~" ASC where td_paperno=00000017'<br/>对么?帮帮忙了,我想了很久,没有找出问题。</p><p>谢谢</p>
页:
[1]