什么数据库!?
一般有两种方法:1.上系统表中查询,不过不同的数据库系统表的名称不一样,一般是SYSOBJECTS2.用错误处理来判断,直接用SQL语句查询,如果出错,则说明表不存在!!

解决方案 »

  1.   

    同意射天狼2.
       select 1 from xxx_table
      

  2.   

    select tname from tab (oracle)
      

  3.   

    要看你你用的是什么数据了
    一般在系统表中都有
    如:ms sql server
     if exists  select name from sysobjects where name='tablename' then
     begin
      drop table tablename
     end
      

  4.   

    有个一个DataBaseMetaDate(或者类似的)接口
    可以用这个类来取数据库相关的信息
      

  5.   

    DataBaseMetaDate 有这个类,但是方法好多啊,有没有谁知道该怎么用?