Query that ignore the spaces

后端 未结 6 1531
佛祖请我去吃肉
佛祖请我去吃肉 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:55

    TRY THIS:

    SELECT * FROM mytable WHERE username =REPLACE("John Bob Jones", ' ', '')
    

提交回复
热议问题