Borland®
Shop
Products Downloads Services Support Partners News & Events Company Community
Company

 SQL LINKS DEVELOPER SUPPORT

SEARCH Borland Online/Developer Support

Tech Notes Index


ORACLE / DELPHI SQL passthrough technique using single
quotes. *Double quotes around the string will force Oracle
to think that the string is a column name*.

Delphi example:
procedure TForm1.Button1Click(Sender: TObject);
begin
edit1.text:='''%Uni%''';
with query1 do
begin
     close;
           sql.clear;
           sql.add('SELECT * FROM DELPHI1.CUSTOMER C');
           sql.add('WHERE C."Name" LIKE '+edit1.text);
           memo1.lines:=query1.sql;
           query1.open;
{
SELECT * FROM DELPHI1.CUSTOMER C
WHERE C."Name" LIKE '%Uni%'
}
end;


PUB
ORA ANY TECH
BC



 
Site Map Search Contact