我认为不行:因为SQL语言不允许。
可以这样啊:
with query1do
begin
...
sql.clear;
sql.add('select * from ordCol Where Sign=%s order by code');
sql.add('asc');
...
end;
或这样:
'select * from ordcol where sign=%s order by code'+#13+
'asc'
可以这样吧:
var asql:string;
begin
asql:='select * from TableName where .........';
asql:=asql+'dsdsdsdsdsdsd...';
asql:=asql+'dsadadsadsad';
Query1.sql.text:=asql;