通过什么Sql语句可以查询出一个数据库中所有用户表中记录不为空的表的表名?
通过什么Sql语句可以查询出一个数据库中所有用户表中记录不为空的表的表名?
我写了如下的代码,但有错误,请各位朋友指点迷冿。
select name as '表名' ,crdate as '创建日期',refdate as '最后修改日期'
from sysobjects
where xtype='U' and name<>'dtproperties' and (select count(*) From name)=0
