I have a table in mysql with column called type. contents are below
Type
Test 12
Test abc
start 1
start abcd
end 123
Now I want to select records where type starts with Test
Expected result:
Test 12
Test abc
But I am getting either
Test 12 or empty results
I have tried like below:
select * from table where type = 'Test 12'
select * from table where type = '%Test%'
select * from table where type = '%Test'
What should be the correct sql statement.