H
hoir
Unregistered / Unconfirmed
GUEST, unregistred user!
对于这一段程序:
Active := False;
UnPrepare;
SQL.Clear;
SQL.Add('SELECT * FROM "TipLib.DB"');
SQL.Add('WHERE TipTitle LIKE :SearchParam');
Params[0].AsString := '%' +LIBMainForm.EditSearch.Text + '%';
CurrentSQL:=SQL.GetText;
if AddSQL<>'' then
SQL.Add(AddSQL);
Prepare;
ExecSQL;
Active := True;
1、每回运行中第一次查询时会出现异常:
Project DPro.exe raised exception class EAccessViolation
with message 'Access violation at address 4C637568 in module
'idsql32.dll'. Read of address 013E0618'.Process stopped.
Use Step or Run to continue.
以后再查询就没问题了。
问题会出在哪儿呢?
2、用SQL的‘order by’排序好象很慢!有快一点的方法吗?
Active := False;
UnPrepare;
SQL.Clear;
SQL.Add('SELECT * FROM "TipLib.DB"');
SQL.Add('WHERE TipTitle LIKE :SearchParam');
Params[0].AsString := '%' +LIBMainForm.EditSearch.Text + '%';
CurrentSQL:=SQL.GetText;
if AddSQL<>'' then
SQL.Add(AddSQL);
Prepare;
ExecSQL;
Active := True;
1、每回运行中第一次查询时会出现异常:
Project DPro.exe raised exception class EAccessViolation
with message 'Access violation at address 4C637568 in module
'idsql32.dll'. Read of address 013E0618'.Process stopped.
Use Step or Run to continue.
以后再查询就没问题了。
问题会出在哪儿呢?
2、用SQL的‘order by’排序好象很慢!有快一点的方法吗?