想搜索出用户名是否同名,用户名是唯一的,所以我想用limit优化一下,同时要传递username的参数,不知道怎么写。
是这样吗?select username from user where username=? limit 1;
大家不要笑,刚接触这个东东。