1。sqlite 数据库: select count(*) from sqlite_master where table=*** sqlite_master 是 sqlite维护的系统表 2。SqlServer2000数据库 if exists(select 1 from sysobjects where name='表名' and xtype='u') print '存在' else print '不存在' 3。SqlSer
1。sqlite 数据库:
select count(*) from sqlite_master where table=***
sqlite_master 是 sqlite维护的系统表
2088shop商城购物系统是商城系统中功能最全的一个版本:非会员购物、商品无限级分类、不限商品数量、商品多级会员定价、上货库存、Word在线编辑器、订单详情销售报表、商品评论、留言簿、管理员多级别、VIP积分、会员注册积分奖励、智能新闻发布、滚动公告、投票调查、背景图片颜色更换、店标上传、版权联系方式修改、背景音乐(好歌不断)、广告图片支持Flash、弹出浮动广告、搜索引擎关健词优化、图文友情联
2。SqlServer2000数据库
if exists(select 1 from sysobjects where name='表名' and xtype='u')
print '存在'
else
print '不存在'
3。SqlServer2005数据库
SELECT ISNULL(OBJECTPROPERTY(OBJECT_ID('TableName'), 'IsUserTable'), 0)
存储过程中可以这样判断:
IF OBJECT_ID ('TableName', 'U') IS NOT NULL
4。access数据库
SELECT Count(*) AS RTab FROM MSysObjects WHERE (((MSysObjects.Name) Like "需判断的已知表名"));
5。MySql数据库
select 1 from information_schema.tables where table_name = 'account';
if found_rows() = 1 then
....
end if;









