mysql - Complicated (my)SQL left join -


Is it possible to join a left, which will result in the following assumptions:

Table A: < / P>

  ID value 1 foo 2 times 3 fobar  

saribb:

  foreign alien_arma 1 fish 1 soup  

The result of the inclusion should be the result of Table A (joining the left) and additionally the result included in A and B:

SELECT * from a complex B Joining AID = B Forging:

  ID value foreign foreign_quality 1fu nail faucet 1fu 1 fish 1fu 1 soup 2 times nail faucet 3 foobar faucet  

shown examples - The first row of the result does not exist when adding a normal left.

Is that possible? No, such a possibility is not possible, because you will not get the line before you.

You can use a union such as

  SELECT a.id, a.value, b.foreign, b.foreign_value. . Select a union from a.id, a.value, null, null a  

This will give the expected results in your example, but I do not understand why you tried to do this We do . So I do not know that it gives the expected results in the normal case.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -