Jump to content

how to choose info from one table to another


jbrill

Recommended Posts

You need to use a JOIN clause in your sql statement. Something in the line of:-

 

SELECT * FROM products_table INNER JOIN colours_table ON (products_table.colour = colours_table.id);

 

There are various types of joins which you can read up on http://en.wikipedia.org/wiki/Join_(SQL)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.