Home > Blockchain >  why mysql where provide result with alphanumeric value?
why mysql where provide result with alphanumeric value?

Time:10-02

When I filter numeric id with where condition inside with key all then result is like this which is correct https://prnt.sc/1ubkviy

But when we pass alpha numeric value inside where condition, still it is giving result then can you explain us in detail why this is happening https://prnt.sc/1ubkzbq

CodePudding user response:

Try using BINARY for exact match:

SELECT * FROM office_category WHERE BINARY id="2sssss"
  • Related