if EXISTS (Select ....)//SQL Server; Session.GetTable(TLists)//应该可以的;
ado中: var mytables:tstringlist; begin mytables:=tstringlist.Create ; adoconnect.GetTableNames(mytables); if not (mytables.IndexOf(findtablename)=-1) then showmessage('find');
select * from table1 where 1=2如果错误,则表示该table1不存在,否则存在
Session.GetTable(TLists)//应该可以的;
var
mytables:tstringlist;
begin
mytables:=tstringlist.Create ;
adoconnect.GetTableNames(mytables);
if not (mytables.IndexOf(findtablename)=-1) then
showmessage('find');