0

I have a table which is

table A

|noid    |
|ab123bs |
|a22a    |
|cc123cc |

I want to find '123' in that table

I have tried mysql:

SELECT * FROM table A WHERE '123' LIKE '%noid%' -not working

I also have tried mysql

SELECT * FROM table A WHERE '123' LIKE concat('%',noid,'%') -not working
2
  • you should find the column name: where 'noid' like '%123%' Commented Apr 12, 2019 at 1:42
  • thank you. I thought mysql only work when small string search in big string Commented Apr 12, 2019 at 2:04

1 Answer 1

1
select * from table A where nokp like '%123%';
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.