Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Beginning MySQL
|
BOOK: Beginning MySQL
This is the forum to discuss the Wrox book Beginning MySQL by Robert Sheldon, Geoff Moes; ISBN: 9780764579509
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 7th, 2007, 04:54 PM
Registered User
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Foreign key vs. table types

Hi,

I am a totally newbie to MySQL. Have read the book front-to-back with great pleasure. One of the best and most instructive books for me so far - being a newbie. Excellent step by step examples and very easy to follow.

Got a definitions question from Chap 5, p159, Table with 'table types'.

My problem is:
Would like to make a table with one of the columns being a BLOB type.
(For pictures, icons, PDF's, Photos, etc.) - Best suited for this purpose is the MyISAM as far as I can figure?? (p160)

Additionally to the table, I would like to have a column - 'Type', indicating what the BLOB object is. I would prefer 'Type' to be a foreign key, but does MyISAM support the foreign key functionality I need satisfactorily?

Based on the text on p160 - "MyISAM.... MyISAM tables are not transaction safe, and they do not support full foreign key functionality." - I'm not sure to what extend MyISAM will meet my requirements?

InnoDB - text says:"...InnoDB tables also support full foreign key functionality in MySQL, unlike other tables..."

This implies that the other tables only support foreign keys in a limited manner - but how?

Can anybody help or guide me on this - please... ;o)

[u]</u>[u]</u>






Similar Threads
Thread Thread Starter Forum Replies Last Post
Foreign key not updating with Primary key xavier1945 BOOK: Access 2003 VBA Programmer's Reference 2 July 4th, 2007 09:48 PM
Composite Foreign Key bijgupt SQL Server 2005 6 May 4th, 2007 08:46 AM
foreign key constraints - referential integrity DTSDeveloper SQL Server DTS 0 September 6th, 2005 01:10 PM
FOREIGN KEY and PRIMARY KEY Constraints junemo Oracle 10 June 15th, 2004 01:00 AM
Foreign Key Problem re_anu SQL Server 2000 1 September 26th, 2003 10:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.