Blog信息 |
blog名称:注册会计师(注会)练习软件 日志总数:398 评论数量:116 留言数量:27 访问次数:3269708 建立时间:2005年6月6日 |

| |
[delpih编程]delphi查询access中某一张表是否存在 软件技术
吕向阳 发表于 2009/6/2 14:40:28 |
//方法一adoquery1.close; adoquery1.sql.clear; adoquery1.sql.add('select count(*) from sysobjects where name=''yourtablename''); adoquery1.open; if adoquery1.eof then showmessage('表不存在'); //方法二var List:TstringList; begin List:=TstringList.create; try AdoConnection1.Gettablenames(List); if list.indexof(yourtablename)=-1 then showmessage('库中无此表!'); finally List.free; end; end; |
|
|