得到答案了:
表名:
procedure GetTableNames(List: TStrings; SystemTables: Boolean = False);
Description
Call GetTableNames to retrieve a list of tables in the associated database.
List is the already-existing string list object into which the tables names are put.
Set SystemTables to indicate whether the list of table names should include the database抯 system tables.
ADOConnection1.GetTableNames(ListBox2.Items, False);
字段名:
procedure GetFieldNames(const TableName: String; List: TStrings);
其中 可以为:Tdatabase,Tdataset,Tsession,都有这样的方法