sql - mysql right join not working as expected -
When I use to join correctly, I get the same result as joining the left or just joining.
langugages
id
code for example:
hoo "," n "
language_default < / H2>
id
text
language_translation
id
Lang_ID (language id in FK) in the table of contents
default_lang_id (languages are the ID of the text in the default tab)
text (translation)
When I execute the following queries, I get all the translations of the language Expectations - Transaction Tutorial and Language _All text fields from the default table with zero values where no Hungarian translations are.
select language_translation. "Text", `language` default` text * by 'languages`,` language_ Enter the word 'language_ every' on the translation 'complete' language_default '. `` `Language_translation`' default_long_id` where` languages``````````````````` and `languages``````` `` _language_translation`` long_id` Instead of just receiving the text I am a language / default table where there are translations of that text in the translation table. I hope that there will be a behavior to connect with the left or to join the normal, but will not be included in the right. With no thought, I can not find all entries from the langugage_defailt table ?
Join the general before you all and join the right combination of rights. You can use it according to the questions given below.
The second thing to connect properly means that you will get records related to the right and the left from all sides and if there is no record of left side then it will show the stereo.
Normal joining or joining a comma will only get the general lines.
So if you have only normal rows in your tables then all meet only one result.
select language_translation.` text ', `language` default``` text by languages' ASL JOYNE' LANGUAGE_translation` ASTL.ID`T =` on `lang_id` and l.`code` = 'Hu' is the correct word 'language_default' ASD On D. DID `t Default_long_id`;
Comments
Post a Comment