Welcome Guest, Not a member yet? Register   Sign In
Selecting records based on ID
#5

[eluser]RS71[/eluser]
Thank you mates!

Worked like a charm

Might I ask another question?

Lets say I want to delete all rows associated to a certain ID and replace them with a new set of rows. Is there a better way to do this other than a DELETE then a INSERT VALUES (...)?

Also, can I SELECT multiple rows from multiple tables in one query? I don't necessarily want to concatenate the rows returned from the different tables.

For example, lets say I have a table listing the user's favorite 'Books' and another for 'TV Shows'. How can I select all rows from 'Books' and all rows from 'TV Shows' belonging to a certain user in one query?

Thanks once again!


Messages In This Thread
Selecting records based on ID - by El Forum - 03-09-2009, 03:51 PM
Selecting records based on ID - by El Forum - 03-09-2009, 03:58 PM
Selecting records based on ID - by El Forum - 03-09-2009, 04:04 PM
Selecting records based on ID - by El Forum - 03-09-2009, 04:07 PM
Selecting records based on ID - by El Forum - 03-10-2009, 09:26 AM
Selecting records based on ID - by El Forum - 03-10-2009, 09:41 AM
Selecting records based on ID - by El Forum - 03-11-2009, 10:51 AM
Selecting records based on ID - by El Forum - 03-11-2009, 11:12 AM
Selecting records based on ID - by El Forum - 03-11-2009, 11:40 AM
Selecting records based on ID - by El Forum - 03-11-2009, 11:55 AM
Selecting records based on ID - by El Forum - 03-11-2009, 12:15 PM
Selecting records based on ID - by El Forum - 03-11-2009, 12:43 PM
Selecting records based on ID - by El Forum - 03-11-2009, 01:28 PM
Selecting records based on ID - by El Forum - 03-11-2009, 02:12 PM
Selecting records based on ID - by El Forum - 03-11-2009, 08:57 PM
Selecting records based on ID - by El Forum - 03-11-2009, 09:00 PM
Selecting records based on ID - by El Forum - 03-11-2009, 09:12 PM
Selecting records based on ID - by El Forum - 03-11-2009, 09:15 PM
Selecting records based on ID - by El Forum - 03-11-2009, 09:35 PM
Selecting records based on ID - by El Forum - 03-11-2009, 09:46 PM
Selecting records based on ID - by El Forum - 03-12-2009, 07:23 AM
Selecting records based on ID - by El Forum - 03-12-2009, 07:28 AM
Selecting records based on ID - by El Forum - 03-12-2009, 07:40 AM
Selecting records based on ID - by El Forum - 03-12-2009, 07:53 AM
Selecting records based on ID - by El Forum - 03-12-2009, 12:04 PM
Selecting records based on ID - by El Forum - 03-12-2009, 01:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB