处理一个查询的错误问题
//处理欠费<BR>ls_temp=trim(ddlb_4.text)<BR>if ls_temp<>"" then<BR> if wheresql="" then<BR> wheresql="where view_tjcx2.欠费='"+ls_temp+"'"<BR> else<BR> wheresql=wheresql+"and view_tjcx2.欠费='"+ls_temp+"'"<BR> end if<BR> end if 问一下大家 如果ddlb_4.text是一个比较的字符 像>0 <0 =0之类的 那应该把ddlb_4.text前面的那个trim还成什么 因为用trim是说有错 float不能转换成varchar ls_temp=trim(string(ddlb_4.text))<BR>if ls_temp<>"" then<BR> if wheresql="" then<BR> wheresql="where view_tjcx2.欠费='"+ls_temp+"'"<BR> else<BR> wheresql=wheresql+"and view_tjcx2.欠费='"+ls_temp+"'"<BR> end if<BR> end if<BR>看看可以吗 同意楼上的 '欠费=' <BR>the '=' shoud be deleted.页:
[1]
