- 10
- 0
- 约2.28万字
- 约 302页
- 2017-12-22 发布于河南
- 举报
Delphi 程序设计与数据库应用开发
数据集组件 -TTable Age20 and dno=`d01` True 数据集组件 -TQuery TQuery 查询组件 一个查询组件封装了一个SQL语句,该语句在客户应用程序中用于在一个或多个数据库表中检索、插入、修改和删除数据。因此,该组件实际上是为你使用SQL语句操纵数据库提供了一种手段。 数据集组件 -TQuery Query1 Select * from students where dno=:dno Select * from student where dno=:dno Tquery - 参数动态赋值 with query1 do begin DisableControls; try Close; ParamByName(`dno`).value:=` d01` ; Open; finally EnableControls; end; end; Dataset 方法 禁止通过数据源与该数据集组件相连的数据感知控件显示数据. Query1.Close; Query1.ParamByName(`dno`).value:=` d01` ; Query1.Open; Tquery - 动态构造SQL语句 Query1.Close; Query1.SQL.Clear; Query1.SQ
原创力文档

文档评论(0)