Which MySQL JOIN query is more efficient?

后端 未结 4 640
谎友^
谎友^ 2021-02-03 16:01

Given the following table structure:

CREATE TABLE user (
   uid INT(11) auto_increment,
   name VARCHAR(200),
   PRIMARY KEY(uid)
);
CREATE TABLE user_profile(
          


        
4条回答
  •  走了就别回头了
    2021-02-03 16:09

    Not sure how the MySQL's query engine would handle that, but my assumption would be the first query would perform better and be more efficient.

    The first query is also more standard and the easier to read of the two therefore more preferable.

提交回复
热议问题