Any way to select from MySQL table where a field ends in certain character/number?

后端 未结 7 421
南方客
南方客 2020-12-21 10:57

I am hoping to run a mysql_query where I can select a row if a certain field ends in a number. For example:



        
相关标签:
7条回答
  • 2020-12-21 12:00
    SELECT id FROM table WHERE id REGEXP '1[[:>:]]'
    
    0 讨论(0)
提交回复
热议问题