Download presentation
Presentation is loading. Please wait.
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;
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.