sql server 2008 - how to find in which table a particular data exist -


i have 5 tables follows ledproducts,electricalproduts, audioproducts, videoproducts , structure products. columns in each table follows materialname, partno,uom . want find in table particular partno exist. fastest way find?

try this....

in query, give column name want in clause. show both column name , table name.

select table_name, column_name information_schema.columns column_name = 'partno'


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -