Presentation is loading. Please wait.

Presentation is loading. Please wait.

Working with Delphi— from Database Perspective

Similar presentations


Presentation on theme: "Working with Delphi— from Database Perspective"— Presentation transcript:

1 Working with Delphi— from Database Perspective
Using Query Component

2 Main content The Basic Functions of Query Component
Database property SQL property Design mode Run-time mode Params property Active property Dynamic SQL Statement Setting in Query Query Componenet Application Samples

3 Manipulating Query Opening a Query Query.Open Query.ExecSQL
Browsing: Prior, Next, First, Last, Locate Accessing: FieldValues['Sno'], Query['Sno'], FieldByName('Cno').AsString Updating: Dynamic SQL Statement

4 Dynamic SQL Statement SQL property: Params property
Select … From … Where sno = :sno Params property ValueType Value

5 Setting Query Parameter
Query.Close; Query.ParaByName('Cno').AsString:=… Query.Params[1].Value:=… Query.Open; Query.ExecSQL;


Download ppt "Working with Delphi— from Database Perspective"

Similar presentations


Ads by Google