MySql数据库:
SELECT count(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA='bean' AND (TABLE_NAME LIKE 'E_%' OR TABLE_NAME LIKE 'N_%');;
DB2:
SELECT count(TABNAME) FROM SYSCAT.TABLES WHERE TABSCHEMA='BEAN' AND (TABNAME LIKE 'E_%' OR TABNAME LIKE 'N_%');
其中dbName为数据库名称.