user3719646
user3719646

Reputation: 49

Select names starting with the range from A to L

im working on this table 'Empleados'

idEmpleado
nombreEmmpleado
hijosEmpleado

Im trying this select on mysql workbench, but not working

select nombreEmpleado from empleados where nombreEmpleado like '[A-L]%' order by nombreEmpleado

I need to show all names starting with the range from A to L. Thanks.

Upvotes: 0

Views: 56

Answers (1)

echo_Me
echo_Me

Reputation: 37233

use REGEXP like that:

  WHERE nombreEmpleado REGEXP '^[A-L]'

Upvotes: 1

Related Questions