Jump to content

Archived

This topic is now archived and is closed to further replies.

AV1611

simple... query

Recommended Posts

Need to find all records where the third digit is a P

select * from table wherer field like '__P%' --> I thougth mysql used _ for a placeholder, but no returns
If I do like '%P%' I get too many...
??P? is not valid I don't think...

How?

Share this post


Link to post
Share on other sites
it should work. maybe there're whitespaces before the string so P is not really the 3rd character?

[!--sql--][div class=\'sqltop\']SQL[/div][div class=\'sqlmain\'][!--sql1--][span style=\'color:blue;font-weight:bold\']SELECT[/span] [color=red]'TEsTing'[/color] [color=orange]LIKE[/color] [color=red]'__S%'[/color]; [!--sql2--][/div][!--sql3--]
returned true for me.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.