$MYSQL_CMD information_schema 2>/dev/null -NBe "select distinct TABLE_SCHEMA,table_name from columns where TABLE_SCHEMA = ‘$db‘ and table_name not in ( select distinct table_name from COLUMNS where TABLE_SCHEMA = ‘$db‘ and (column_key = ‘PRI‘ or column_key = ‘UNI‘) )" | tee -a $LOG