这就是你要找的东西
SELECT *
FROM yourtable
WHERE yourcolumn LIKE 'X%'
Run Code Online (Sandbox Code Playgroud)
这将找到yourcolumn以字母X开头的所有行.
要找到以X结尾的所有内容:
...
WHERE yourcolumn LIKE '%X'
Run Code Online (Sandbox Code Playgroud)
......并且包含一个X ...
...
WHERE yourcolumn LIKE '%X%'
Run Code Online (Sandbox Code Playgroud)