Query for searching the name alphabetically

前端 未结 5 1252
梦谈多话
梦谈多话 2020-12-12 06:04

I have used the LIKE condition, but it required me to enter the full name into the database to find the name.



        
5条回答
  •  独厮守ぢ
    2020-12-12 06:18

    Instead of

    StringBuilder sb = new StringBuilder();
    

    and

    sb.append(name + " ");
    

    do

    List names = new ArrayList();
    

    and

    names.add(name);
    

提交回复
热议问题