Z
zhengv
Unregistered / Unconfirmed
GUEST, unregistred user!
请教!如何多条SQL同时查询?
result := copy(result, 0, length(result) - 1); //去掉最后的','号
A:= 'select namechr from name where namechr in ('+result+')';
B:= 'select b from 表2 where id=((select A from 表1 where my=' +
'''' + param2 + '''' + ')-(select A from 表1 where my=' +
'''' + param1 + '''' + '))';
C:= 'select namechr,b.meaning from name a,name1 b where a.strokes=b.id and a.namechr in ('+result+') ';
我想sql.add(A+B+C)同时查询结果,如何做?我想不出办法!
result := copy(result, 0, length(result) - 1); //去掉最后的','号
A:= 'select namechr from name where namechr in ('+result+')';
B:= 'select b from 表2 where id=((select A from 表1 where my=' +
'''' + param2 + '''' + ')-(select A from 表1 where my=' +
'''' + param1 + '''' + '))';
C:= 'select namechr,b.meaning from name a,name1 b where a.strokes=b.id and a.namechr in ('+result+') ';
我想sql.add(A+B+C)同时查询结果,如何做?我想不出办法!