RE: php - mysql problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
table1

id
name
value

table2

id
x
y

i want to

id name value x y

but there is no id from table 2 that is in table2.id and i want the
resource to bu something like this:

id(from table 1) name value (empty) (empty)


> SELECT table2.* 
> FROM table1 LEFT OUTER JOIN table2 
> ON(table1.id = table2.id)
> WHERE table1.id IS NULL  
[/snip]

> SELECT table1., *table2.* 
> FROM table1 LEFT OUTER JOIN table2 
> ON(table1.id = table2.id)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux