» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 09-18-2006, 08:06 AM
ingo ingo is offline
Junior Member
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ingo is on a distinguished road
Default On Delete Cascade.....!!!!!

hi guys,
i have an ON DELETE CASCADE that is self-referential. I am trying to cascade a delete through a table with PK and FK constraint.

CREATE TABLE `folder` (
`folder_num` bigint(16) unsigned NOT NULL auto_increment,
`folder_num_par` bigint(16) unsigned default '0',
`user_num` int(11) unsigned NOT NULL default '0',
`folder_name` longtext NOT NULL,
`used_count` bigint(16) unsigned NOT NULL default '0',
`used_bytes` bigint(16) unsigned NOT NULL default '0',
`modified` datetime default '0000-00-00 00:00:00',
PRIMARY KEY (`folder_num`),
KEY `folder_Index2` (`folder_num_par`),
KEY `user_num` (`user_num`),
CONSTRAINT `folder_ibfk_1` FOREIGN KEY (`folder_num_par`) REFERENCES `folder` (`folder_num`) ON DELETE CASCADE,
CONSTRAINT `folder_ibfk_2` FOREIGN KEY (`user_num`) REFERENCES `user` (`user_num`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1

For rela -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 09-18-2006, 08:07 AM
Silasa Silasa is offline
Senior Member
 
Join Date: Jul 2006
Posts: 102
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 18
Silasa is on a distinguished road
Default

try to compile MySQL yourself and then you can raise the limit.
good luck -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 09-18-2006, 08:21 AM
waqar's Avatar
waqar waqar is offline
Senior Member
 
Join Date: Nov 2005
Posts: 247
Thanks: 13
Thanked 10 Times in 7 Posts
Rep Power: 23
waqar will become famous soon enough
Default

Quote:
Originally Posted by Silasa View Post
try to compile MySQL yourself and then you can raise the limit.
good luck
i will suggest the same , good luck from my side as well -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
On Delete Cascade????? Juliz MySQL Forums 1 12-23-2006 04:54 AM
Mysql_affected_rows() isn't working on a delete query? zizu PHP Programming and Tips 1 08-26-2006 03:05 PM
Cascade functionality.. Allijah MySQL Forums 1 08-23-2006 05:06 AM
to delete old sessions. Leon MySQL Forums 1 08-03-2006 10:20 AM
delete the picture in certain folder using asp code prince ASP forums and Tips 1 07-28-2006 10:44 AM


All times are GMT. The time now is 11:47 AM.