MySQL Forums
Forum List  »  Russian

Re: Помогите разобраться с USING
Posted by: Sergey Dogotar
Date: October 05, 2010 08:10AM

нет никакой разницы в использовании конструкции USING(field) и t1.field=t2.field в данном случае. Using в джоинах работает, когда имена полей обеих таблиц совпадают. Иначе необходимо использовать:
t1.field1=t2.field2

..как по мне using смотрится красивее и читабельнее.



Edited 1 time(s). Last edit at 10/05/2010 10:08AM by Sergey Dogotar.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Помогите разобраться с USING
8105
October 05, 2010 08:10AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.