select id from tablo_adi where kolon_ismi regexp '^a' veya değişkenle select id from tablo_adi where kolon_ismi regexp '^$harf'