如何过滤掉系统表?
我用ADOConnection取出数据库中的表,代码如下:
int j;
AnsiString tempstr1;
AnsiString tempstr2;
AnsiString tempstr3;
AnsiString strValue;
ListBox1->Items->Clear();
TTreeNode *tempNode;
TreeView1->Items->Clear();
tempstr1="yxk";
TreeView1->Items->Add(NULL,tempstr1);
ListBox2->Items->Clear();
tempNode=TreeView1->Items->Item[0];
tempNode->ImageIndex=1;
strValue=tempNode->Text;
Formyxk->ADOConnection1->GetTableNames(ListBox2->Items,false);
for(j=0;j<ListBox2->Items->Count;j++)
{
tempstr2=ListBox2->Items->Strings[j];
TreeView1->Items->AddChild(tempNode,tempstr2);
}
但是为什么有一些其它的表,我只想取出我自己建的表。
还有如何取出表中字段的属性,比如是char的或long类型的。