[英]How to get records in mysql where first letter equals 'X', when dealing with spanish characters?
[英]How to get records with first letter that match one of three letters
我想檢索第一個字母匹配a,b或c的記錄。 他們應該匹配他們是否是上限。
例:
$sql = "SELECT id, title from tblName WHERE first letter of title in (a, b, c) order by title ASC";
任何幫助將不勝感激。
謝謝
SELECT id,來自tblName的標題,其中標題REGEXP'^ [abc]'按標題ASC排序
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.