Go Back   Forum Care Forums > Development Reference Area > MySQL Discussion

Reply
 
LinkBack Thread Tools Display Modes
Insert Statement
Old
  (#1)
Guest
Guest
 
Posts: n/a
Default Insert Statement - 06-04-2007, 07:58 AM

Hi I'm currently trying to write a semi complex insert statement.

I have been able to use insert and select together, however am having
to luck in adding addition fields to the update.

This works OK

INSERT INTO picture (`GalleryID`, `Team` )
SELECT galleries.GalleryID, categories.Team
FROM galleries
CROSS JOIN categories
WHERE galleries.GalleryName = 'Holiday Pictures' AND categories.Team =
'2'

However want to update more rows with data

Need to insert values to fields like FileName, Date, Caption etc....
This information is coming directly from the page, generated from iptc
information etc. How do I go about this... Its not the standard INSERT
INTO () VALUE () statement

I'm using mySQL..

Any ideas.

Thank you

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Contact Us - Forum Care Forums - Archive - Top