开发者

Simple like SQL statement failed

开发者 https://www.devze.com 2023-01-07 14:40 出处:网络
I know this might shock some but I just cant figure out what\'s wrong with thi开发者_Python百科s SQL statement.. it kills my head.

I know this might shock some but I just cant figure out what's wrong with thi开发者_Python百科s SQL statement.. it kills my head.

SELECT * FROM groups WHERE gname LIKE '%m%'; 

I am using mysql 5.1.41


If you don't get any rows back, perhaps that's the right answer. Mistakes usually happen when your assumptions don't match the situation at hand.

Are you sure you have values in the gname column with lower case 'm' in them?

Are you sure you're running the query against the database you think you are?


This statement will retrieve every column and every row from the groups table where the gname column contains a lowercase m somewhere. Is this what you wanted to achieve?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号