exec sp_MSforeachtable N' if exists(select 1 from ?) print ''?''+''(Y)'' else print ''?''+''(N)'''
exec sp_MSforeachtable N' if exists(select 1 from ?) print ''?''+''(Y)'' else print ''?''+''(N)'''
转载于:https://www.cnblogs.com/wuquelin/articles/3089890.html