|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
LEFT JOIN with odbc & php
I'm trying a simple LEFT JOIN on two tables, via odbc connection. I'm connecting to SQL Server.
PHP Code:
This yeilds the following error: PHP Code:
Since I pulled the WHERE clause from a working, known-good query, I assume the error is referring to my LEFT JOIN? I don't know where to look for documentation on how to construct a simple LEFT JOIN in odbc.. I tried googling but I didn't see anything like mysql.org where the doc is easily accessed. Any help is most appreciated. Last edited by C3P0 : May 17th, 2004 at 02:12 PM. |
|
#2
|
|||
|
|||
|
Try Left Outer Join
|
|
#3
|
||||
|
||||
|
When you wrote "try" were you sure it was going to work, or simply guessing?
|
|
#4
|
||||
|
||||
|
Yes that does in fact work. The correct syntax, in case anyone needs it, is:
PHP Code:
Thank you. |
|
#5
|
|||
|
|||
|
Left outer join should work
|
|
#6
|
|||
|
|||
|
You can not use WHERE with LEFT JOIN
|
|
#7
|
|||
|
|||
|
Quote:
You most certainly can. |
|
#8
|
||||
|
||||
|
Quote:
Odd, because the query I pasted right above your post works perfectly. Maybe you don't know what you're talking about? |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > LEFT JOIN with odbc & php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|