Answer the question
In order to leave comments, you need to log in
How to select records from mySQL whose field value is contained at the beginning of a row?
There is a table in which the field "field" is equal to:
Answer the question
In order to leave comments, you need to log in
He asked himself, answered himself =) While explaining to Sasha Pushkarev what his mistake was, he solved the question himself. Doubts are only about the optimality of such a request
Answer:
SELECT * FROM test WHERE field = LEFT('abcdefghk',LENGTH(field));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question