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
Post a Comment