SQL Between clause with strings columns

后端 未结 6 2083
暖寄归人
暖寄归人 2020-11-27 19:24

I want to make a search using \"between\" clause over a string column. Doing some test I got this:

Let\'s assume that there is a country table with a \"name\" column

6条回答
  •  野性不改
    2020-11-27 20:11

    Another query that would get countries that start with b as well as A, would be:

    Select * from country where name between 'a' and 'c'
    

提交回复
热议问题