You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECTtab.table_schemaAS database_name, tab.table_nameFROMinformation_schema.tables tab
LEFT JOINinformation_schema.table_constraints tco ONtab.table_schema=tco.table_schemaANDtab.table_name=tco.table_nameANDtco.constraint_type='PRIMARY KEY'WHEREtco.constraint_type IS NULLANDtab.table_schema NOT
IN (
'mysql', 'information_schema', 'performance_schema', 'sys'
)
ANDtab.table_type='BASE TABLE'ANDtab.table_schema='mainsite_una'-- put db name hereORDER BYtab.table_schema, tab.table_name
The text was updated successfully, but these errors were encountered:
SQL query to detect such tables:
The text was updated successfully, but these errors were encountered: