Click here to Skip to main content
15,907,329 members
Home / Discussions / Database
   

Database

 
GeneralRe: Can drop temptable from different server? Pin
Eddy Vluggen8-Oct-10 7:59
professionalEddy Vluggen8-Oct-10 7:59 
QuestionAccess database modified date and time Pin
Sakhalean6-Oct-10 19:57
Sakhalean6-Oct-10 19:57 
AnswerRe: Access database modified date and time Pin
Pete O'Hanlon6-Oct-10 22:02
mvePete O'Hanlon6-Oct-10 22:02 
GeneralRe: Access database modified date and time Pin
Sakhalean6-Oct-10 23:07
Sakhalean6-Oct-10 23:07 
GeneralRe: Access database modified date and time Pin
Pete O'Hanlon6-Oct-10 23:31
mvePete O'Hanlon6-Oct-10 23:31 
AnswerRe: Access database modified date and time Pin
David Skelly6-Oct-10 22:21
David Skelly6-Oct-10 22:21 
AnswerRe: Access database modified date and time Pin
Mycroft Holmes7-Oct-10 0:44
professionalMycroft Holmes7-Oct-10 0:44 
QuestionHow can I add the data found from one table to another? Pin
djhankypark6-Oct-10 6:19
djhankypark6-Oct-10 6:19 
Hi
I am comparing data between 2 tables looking for what exists in one so i can then enter whatis found into the second table as follows...

<pre>
mysql_select_db($database_Chartmenu, $Chartmenu);
$query_find_all = "SELECT hankypark.ID FROM hankypark LEFT JOIN tbl_ply_hankypark ON hankypark.ID = tbl_ply_hankypark.Song_ID WHERE (((tbl_ply_hankypark.Song_ID) Is Null))";
$find_all = mysql_query($query_find_all, $Chartmenu) or die(mysql_error());
$row_find_all = mysql_fetch_assoc($find_all);
$totalRows_find_all = mysql_num_rows($find_all);
</pre>

in the hankypark table i know will be entries that do not exist in the tbl_ply_hankypark table hense the Is Null query which gives me an array of the ID field, I now want to add those ID's to the tbl_ply_hankypark table. Question is what do I use to roll through all the ID's found ?

My INSERT query looks like this...as said what do use tat the begining is it a...

while or do or what?? and how should it be properly laid out please? not having played with arrays I have tried several things from suggestions on the net but none seem to work apart from one that only inserted the first ID and then stopped?

<code>
// Insert a row of information into the table "example"
mysql_query("INSERT INTO tbl_ply_hankypark (Song_ID) VALUES ('???')")or die(mysql_error());
</code>


Thought it best to just bite the bullet and come ask you guys cos your always right lol Smile | :)

Cheers in advance of any help

Regards

Ray
AnswerRe: How can I add the data found from one table to another? Pin
PIEBALDconsult6-Oct-10 14:59
mvePIEBALDconsult6-Oct-10 14:59 
AnswerRe: How can I add the data found from one table to another? Pin
Pete O'Hanlon6-Oct-10 21:57
mvePete O'Hanlon6-Oct-10 21:57 
GeneralRe: How can I add the data found from one table to another? Pin
djhankypark7-Oct-10 2:28
djhankypark7-Oct-10 2:28 
GeneralRe: How can I add the data found from one table to another? Pin
Pete O'Hanlon7-Oct-10 2:34
mvePete O'Hanlon7-Oct-10 2:34 
QuestionSuggestion for any Good eBook for Oracle 11g [For Programming] Pin
εїзεїзεїз5-Oct-10 23:26
εїзεїзεїз5-Oct-10 23:26 
AnswerRe: Suggestion for any Good eBook for Oracle 11g Pin
Pete O'Hanlon6-Oct-10 0:06
mvePete O'Hanlon6-Oct-10 0:06 
GeneralRe: Suggestion for any Good eBook for Oracle 11g Pin
εїзεїзεїз6-Oct-10 0:32
εїзεїзεїз6-Oct-10 0:32 
GeneralRe: Suggestion for any Good eBook for Oracle 11g Pin
Pete O'Hanlon6-Oct-10 3:44
mvePete O'Hanlon6-Oct-10 3:44 
AnswerRe: Suggestion for any Good eBook for Oracle 11g [For Programming] Pin
Mycroft Holmes6-Oct-10 1:46
professionalMycroft Holmes6-Oct-10 1:46 
GeneralRe: Suggestion for any Good eBook for Oracle 11g [For Programming] Pin
εїзεїзεїз6-Oct-10 1:58
εїзεїзεїз6-Oct-10 1:58 
Questionxml in sql 2005 Pin
WhiteGirl235-Oct-10 21:39
WhiteGirl235-Oct-10 21:39 
QuestionA very Good artical on Query optimization techniques SQL server database Pin
ptr_Electron5-Oct-10 19:16
ptr_Electron5-Oct-10 19:16 
AnswerRe: A very Good artical on Query optimization techniques SQL server database Pin
Blue_Boy5-Oct-10 21:24
Blue_Boy5-Oct-10 21:24 
AnswerRe: A very Good artical on Query optimization techniques SQL server database Pin
David Mujica6-Oct-10 3:31
David Mujica6-Oct-10 3:31 
AnswerRe: A very Good artical on Query optimization techniques SQL server database Pin
Luc Pattyn6-Oct-10 3:41
sitebuilderLuc Pattyn6-Oct-10 3:41 
GeneralRe: A very Good artical on Query optimization techniques SQL server database Pin
ptr_Electron6-Oct-10 3:53
ptr_Electron6-Oct-10 3:53 
GeneralRe: A very Good artical on Query optimization techniques SQL server database Pin
Luc Pattyn6-Oct-10 3:55
sitebuilderLuc Pattyn6-Oct-10 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.