문제

Odd one this...

The following command returns what I 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%'
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top