I am not sure what you are asking. I usually use a GUI to tease out that sort of info.
Toad for Mysql is free (windows) has a feature that lists all the Constraints for a table in one view. If you are not on windows Navicat eval has a Mac an Linux version. Haven't used it but others here speak highly of it. Also SQLYog has a community version that might do that as well. (I haven't tried it). On Tue, Mar 18, 2008 at 4:03 PM, Richard White <[EMAIL PROTECTED]> wrote: > thanks for this - is there any way to get the constraint name for a > particular column, for example the constraint name in the above example is > qu_41_tb_24_ibfk2. but i wont know the name unless there is a way to get it > from the database. if i get this then i can delete this first then remove > the foreign key and it will remove fine > > thanks very much > > > > ><cfdbinfo type="columns" table="yourtable" datasource="yourDSN" > >name="dbdata"> > > > ><cfquery name="getfk" dbtype="query"> > > SELECT REFERENCED_PRIMARYKEY, REFERENCED_PRIMARYKEY_TABLE > > FROM dbdata > > WHERE IS_FOREIGNKEY = 'YES' > ></cfquery> > > > ><cfdump var="dbdata"> > > > > > ><cfdump var="getfk"> > > > > > > > >On Tue, Mar 18, 2008 at 11:11 AM, Richard White <[EMAIL PROTECTED]> > wrote: > > > >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301538 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

