Mysql count vs mysql SELECT, which one is faster?

后端 未结 5 975
粉色の甜心
粉色の甜心 2020-12-17 16:41

If I want to do a check a name, I want to see how many rows/name exists in the \"username\" column under users table. Lets say thousands ... hundred of thousands, should I u

5条回答
  •  一生所求
    2020-12-17 16:56

    Select statement produces more traffic if there lot of users with same name(lots of rows instead of one).

提交回复
热议问题