Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Sql :: pl sql fetch 
Sql :: sql workbench 
Sql :: comma seperated join mssql 
Sql :: sql orcale i forgot what my name & password was 
Sql :: t-sql email validation 
Sql :: ring MySQL store binary data and special characters in the database after processing 
Sql :: Sql testing queries 
Sql :: how to tell if i have lactose intolerance 
Sql :: ring rollback updates to the database using the odbc_rollback() 
Sql :: sqlite mode default 
Sql :: SQL DATEADD(date_part, number, date) 
Sql :: order by length and alphabetical sql 
Sql :: postgres regex word boundary 
Sql :: odata expand and $select only column values 
Sql :: coursera spark sql max count 
Sql :: sqlserver: reverse like search 
Sql :: sql to move data from one table to another 
Sql :: Oracle webcenter content search enginer 
Sql :: ms sql filter all sympbol 
Sql :: view psql output in horizontal scrolling 
Sql :: mod function example 
Sql :: tsql remove duplicate rows 
Sql :: inner join multiple conditions 
Sql :: row_number equivalent MS Access for sequential id By Group 
Sql :: dollar format in sql server 
Sql :: how to find lowest salary by departments ? 
Sql :: sql count and addition by day 
Sql :: mysql unique two columns 
Sql :: how to create foreign key in sql server management studio 
Sql :: bigquery function 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =