如何判断某个数据表是否存在
ADO:
var
List: TStringList;
begin
List:=TStringList.Create;
try
ADOConnection.GetTableNames(List, True);
if List.IndexOf('TableNaem')=-1 then
//不存在
else
//存在
finally
List.Free
end
end
var
List: TStringList;
begin
List:=TStringList.Create;
try
ADOConnection.GetTableNames(List, True);
if List.IndexOf('TableNaem')=-1 then
//不存在
else
//存在
finally
List.Free
end
end
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/archive/2008/11/22/2940792.html

浙公网安备 33010602011771号