SELECT count (1) FROM media_info where media_id ="%"+ "bb"+"%"
SELECT count (1) FROM media_info where media_id like CONCAT ("%", "bb","%")
I suddenly found this problem when I was doing statistics today. About% splicing.
the number of pieces of data returned by the database is not consistent. And also surprised to find that some of the results returned by the first statement do not have the bb keyword. I would like to ask how this difference arises. Generally speaking, when we conduct fuzzy queries, we use that way, thank you.