Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

VB2010 and LIKE statement (no replies)

$
0
0
Creating a datagrid view on a form in VB2010 and trying to use a "LIKE" statement in my query. I have tried every possible combination and no luck with an INTEGER type column.

I have another datagrid that works fine using ... LIKE CONCAT(@param1, '%') and that column in mysql is a varchar type column. If I use the same format against my INTEGER type column, I get an error stating "Incorrect data type..."

Anyone know how to format my LIKE statement against an INTEGER type column in VB2010? I assume I may have to convert the text box input to an integer type first?!? Users will be searching against project numbers and want this to be an open search box so they can search by one digit...or the whole project number.

Viewing all articles
Browse latest Browse all 1447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>