Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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
 
PREVIOUS NEXT
Tagged: #distinct #data #types #table #sql #query
ADD COMMENT
Topic
Name
4+7 =