Query that ignore the spaces

后端 未结 6 1534
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 02:59

What\'s the best way to run a query so that spaces in the fields are ignored? For example, the following queries:

SELECT * FROM mytable WHERE username = \"Jo         


        
6条回答
  •  死守一世寂寞
    2020-11-30 03:47

    One way would be to use LIKE and WildCards to build your query citeria. Something like:

    SELECT * FROM mytable WHERE username LIKE 'JohnBobJones';

提交回复
热议问题