据我所知,我可以做类似的事情:
"SELECT *
FROM my_table
WHERE my_field LIKE '0%'
OR my_field LIKE '1%'
OR my_field LIKE '2%' ";
有没有办法用正则表达式或类似的东西来实现这一点:
"SELECT *
FROM my_table
WHERE my_field LIKE [only first char is 0-9]"??
编辑:该字段不是数字,它可以是“1 People”、“211 Pies”等。