MySQL SELECT help

From: Date: Fri, 10 Nov 2000 05:39:49 +0000
Subject: MySQL SELECT help
Groups: php.db 
Request: Send a blank email to php-db+get-4360@lists.php.net to get a copy of this message
I have three tables table product =========== stockno name table product_category ================== stockno category table product_image ================ stockno data select * from product ================ 1234 truck select * from product_category ======================== 1234 automobile select * from product_image ====================== 1234 file1.jpg select * from product, product_category, product_image ============================================ 1234 truck 1234 automobile 1234 file.jpg see thats fine, but now what I want is if there are no entries in one of the tables to still return the data it knows about. ie. select * from product ================ 1234 truck select * from product_category ======================== 1234 automobile select * from product_image ====================== Empty Set select * from product, product_category, product_image ============================================ 1234 truck 1234 automobile NULL NULL Can this be done ? Chris Lee Mediawaveonline.com

« previous php.db (#4360) next »