<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">select * from (show fields of tblName) where fld_name = 'productID';<div><br></div><div>mind you check fieldname to use for fld_name by doing a 'show fields of tblName' first</div><div><br></div><div>hth,</div><div><br></div><div>Bart </div><div><br><div><div>On 22 May 2013, at 16:54, George Parkinson <<a href="mailto:george@microtherapy.ca">george@microtherapy.ca</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="background-color: rgb(255, 255, 255); font-family: 'lucida console', sans-serif; font-size: 10pt; "><div id="yiv1994619060"><div style="background-color: rgb(255, 255, 255); font-family: 'lucida console', sans-serif; font-size: 10pt; "><div id="yiv1994619060yui_3_7_2_31_1368763198479_39">hello all,</div><div id="yiv1994619060yui_3_7_2_31_1368763198479_39"><br></div><div id="yiv1994619060yui_3_7_2_31_1368763198479_39">i'm trying to get a list of all table names in a db that have a specific column name.</div><div id="yiv1994619060yui_3_7_2_31_1368763198479_39">ie all user tables with a column named 'productID'.</div><div id="yiv1994619060yui_3_7_2_31_1368763198479_39"><br></div><div id="yiv1994619060yui_3_7_2_31_1368763198479_39">do i have to use a combination of SHOW TABLES, SHOW COLUMNS, and a loop <span style="font-size: 10pt;">or is there simpler way?</span></div><div id="yiv1994619060yui_3_7_2_31_1368763198479_39"><span style="font-size: 10pt;"><br></span></div><div id="yiv1994619060yui_3_7_2_31_1368763198479_39"><span style="font-size: 10pt;">thanks,</span></div><div id="yiv1994619060yui_3_7_2_31_1368763198479_39"><span style="font-size: 10pt;">george</span></div><div id="yiv1994619060yui_3_7_2_31_1368763198479_39"><span style="font-size: 10pt;"><br></span></div><div id="yiv1994619060yui_3_7_2_31_1368763198479_39"><br id="yiv1994619060yui_3_7_2_31_1368763198479_69"></div><div id="yiv1994619060yui_3_7_2_31_1368763198479_39" style="font-size: 13.600000381469727px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal; "><br></div><div id="yiv1994619060yui_3_7_2_31_1368763198479_39"><br></div></div></div></div></div>_______________________________________________<br>Valentina mailing list<br><a href="mailto:Valentina@lists.macserve.net">Valentina@lists.macserve.net</a><br>http://lists.macserve.net/mailman/listinfo/valentina<br></blockquote></div><br></div></body></html>