Yes, you can only add data to a single table in a given INSERT query. 
UPDATE is a little different. MySQL, Oracle, and MSSQL all support a
multi-table form of UPDATE.  I don't know if it's part of the SQL
standard or just an extra that they've all implemented.  Jochem will
know for sure.

cheers,
barneyb

On Mon, 14 Feb 2005 21:37:21 -0500, Roberto Perez <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> Thanks everyone for the tips on querying related tables with inner joins.
> On that note, I'd like to check the following: when I use INSERT or UPDATE
> statements in that scenario (related tables), I'd need to do it
> individually for each table in the relation, right?
> 
> So, using a previous example, if I have these 4 tables:
> 
> Table 1: "Word"
> Field: word PK (many-to-many) (one-to-many)
> Field: pronunciation FK (one-to-many)
> Field: URLName FK (one-to-many)
> Field: meaning
> 
> Table 2: "Type"
> Field: word FK
> Field: type PK  (many-to-many)
> 
> Table: "WordTypeLinking"
> Field: word FK
> Field: type FK
> 
> Table 3: "Pronunciation"
> Field: word FK (one-to-many)
> Field: pronunciation PK (one-to-many)
> 
> Table 4: "URL"
> Field: word FK (one-to-many)
> Field: URLName PK (one-to-many)
> Field: URLLink
> Field: URLDescription
> 
> ....am I correct in assuming I'll have to use 4 different INSERT queries (I
> understand you can specify only 1 table per query when using INSERT)? Or,
> what would be a better way to enter that data? Any best practices/tricks
> you could suggest?
> 
> Thanks in advance for any suggestions/ideas/sample scripts you can provide :-)
> 
> Regards,
> 
> Roberto Perez
> [EMAIL PROTECTED]

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194891
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to