摘要
D elph i应用程序访问数据库,传统的方法就是首先在后台建立一个数据库,然后通过数据访问页上的部件去连接数据库,我们习惯称之为静态访问数据库。但是,当应用程序所连接的数据库表可能在不同的运行功能或时间上有所改变时,传统的方法是行不通的。针对这种情况,本文提出了一种方法———动态创建和连接数据库。也就是说,我们不必要先在后台建立好数据库,可以用代码直接生成我们想要的数据库表,并且可以随意访问数据库。
As for Delphi application program visit database, the traditional way is first to create a database in the haekground, and then through the components of data access page, to connect database, which is called static access database. However, when application program that collects the database may change in time or different functions,the traditional way is impracticable. In light of this condition,this article proposed a method- -Dynamic access database. In other words,it is unnecessary to establish a database first in the background,we can generate the database that we need with direct code,and can visits the database at random.
出处
《南昌航空工业学院学报》
CAS
2006年第3期69-73,共5页
Journal of Nanchang Institute of Aeronautical Technology(Natural Science Edition)
关键词
动态创建
动态连接
数据库表
dynamic establishment
dynamic link
database table