Ultragames
02-07-2006, 10:03 PM
I want to select everything from one table, and everything from another, except one field.
Theoreticly, it would look like this
SELECT eTime.*, eTime_Ex.*, !eTime_Ex.time_id FROM . . . . . .
How can this be done? The problem is that eTime and eTime_Ex share a field, (used in a LEFT JOIN.) However the id in the second table may sometimes be null, which screws up my PHP arrays because they have the same key, but different values.
I know i could just do eTime.*, and then list every field from eTime_Ex except the id, but thats ugly and long.
Any ideas?
Theoreticly, it would look like this
SELECT eTime.*, eTime_Ex.*, !eTime_Ex.time_id FROM . . . . . .
How can this be done? The problem is that eTime and eTime_Ex share a field, (used in a LEFT JOIN.) However the id in the second table may sometimes be null, which screws up my PHP arrays because they have the same key, but different values.
I know i could just do eTime.*, and then list every field from eTime_Ex except the id, but thats ugly and long.
Any ideas?