开发者

LIKE Command Problem using OLEDBREADER and MS Access

开发者 https://www.devze.com 2023-01-06 18:31 出处:网络
Odd one this... The following command returns what I开发者_如何学JAVA would expect when I run it in query window in Access 2003:

Odd one this...

The following command returns what I开发者_如何学JAVA would expect when I run it in query window in Access 2003:

SELECT * FROM Train WHERE [Days] LIKE '*3*'

However when I pass this into my C# code to run (returning an OleDbDataReader) I get nothing.I suspect it's something to do with the LIKE command (when I remove this I get rows).

Any thoughts?


Just a guess but try this:

SELECT * FROM Train WHERE [Days] LIKE '%3%'
0

精彩评论

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

关注公众号