可以使用下面的sqlselect distinct table_name from columns where TABLE_SCHEMA = 'afs' and table_name not in (select distinct table_name from COLUMNS where TABLE_SCHEMA = 'afs' and (column_key = 'PRI' or column_key = 'UNI'))