SELECT * FROM dbname WHERE text = 'a%'
(this can get all the `text` fields which begin with the letter "a".)
Ma come ottenere i campi in cui la prima lettera! = [A-z]?php mysql query prima lettera! = [A-z]
ad esempio:
\"hello\" // this first letter begin as \ not range in a-z
いけ // also first letter not begin range in a-z
...
may also have a white space as the first character.
Così come si può usare php mysql query per ottenere tutti questi tipi di risultati in cui la prima lettera !=[a-z]
?
MySQL non utilizzerà l'indice sul testo come lo ha avvolto in una funzione. Devi isolare il campo indicizzato nel confronto nella dichiarazione where per mysql per usare un indice su di esso. – Riedsio
@Riedsio cosa intendi? 'SINISTRA 'può utilizzare indici. – alexn