Preserved Topic: Foreign Keys in MySQL (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 12-07-2001 16:56
I just noticed that my main query fails to pull 15 out of 165 events. The only possible explanation I can think of is that those events have non-existent foreign keys so that they get dropped out on the WHERE Event.foreignKey=foreignTable.foreignKey clause. |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 12-07-2001 17:43 |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 12-07-2001 18:29
Basically what I want is a query like this: |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 12-07-2001 18:35
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 12-07-2001 18:56
hey jiblet, this is straight from the mysql Manual, Join Syntax section. |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 12-07-2001 19:05
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 12-07-2001 19:14
Good one, thanks tyb. I can't believe i didn't think of that myself. I knew that it shouldn't have to be complicated. |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 12-07-2001 19:30
The poster has demanded we remove all his contributions, less he takes legal action. |