Answers for "distinct data types in a table sql query"

SQL
0

distinct data types in a table sql query

select table_name, count(*)
from 
	(select distinct data_type as data_type, table_name 
	 FROM information_schema.columns
	WHERE table_name like '<table-name>') t
group by table_name
Posted by: Guest on October-25-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language