User Profile

Collapse

Profile Sidebar

Collapse
dickiedyce
dickiedyce
Last Activity: Oct 5 '07, 09:18 AM
Joined: Oct 5 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dickiedyce
    replied to Deleting many-to-many realtionships
    Sorry - managed to fix problem myself - was making it over complicated:

    [CODE=mysql]delete from phones where id in (select phone_id from person_phones where person_id = 5396);[/CODE]

    Again, apologies.
    See more | Go to post

    Leave a comment:


  • dickiedyce
    started a topic Deleting many-to-many realtionships

    Deleting many-to-many realtionships

    I have a simple many-to-many three-table set-up:

    [CODE=mysql]CREATE TABLE `people` (
    `id` int(10) unsigned NOT NULL auto_increment,
    `salutation` varchar(15) default NULL,
    `forename` varchar(60) NOT NULL default '',
    `middle_initial ` varchar(5) NOT NULL default '',
    `surname` varchar(60) NOT NULL default '',
    `suffix` varchar(10) default NULL,
    `is_tenant` tinyint(1) NOT NULL...
    See more | Go to post
    Last edited by Atli; Oct 5 '07, 12:03 PM. Reason: Changed [code] tags to [code=mysql] tags.
No activity results to display
Show More
Working...