V vb163 Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-18 #1 在程序里如何动态查询SQL语句,如:我想在MEMO1中加入多个货号(如:1121100,1111245,11111111.....)在点确定后在DBGRID中显出这些货号的相关信息。。。
Z zbr Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-18 #2 value:= 货号 select * from table where 货号= '''+value+'''
A antonytyler Unregistered / Unconfirmed GUEST, unregistred user! 2006-08-18 #3 如果你在MEMO中货号的格式就是用“,”分隔的话可以这样: select * from YOURTABLE where 货号 in ('+trim(memo.text) + ')'