c# MysqlDataReader return null
Posted by: Davy DUCLY
Date: January 24, 2016 11:53AM

Hello,

I trying to use sql command with MySqlDataReader and a string command.
This one work well with MysqlWorkbench, but in DotNet, I always have a null result.
My MySqlDataReader is null !!!

For some dark reasons, when my string command is : "SELECT * FROM table_medecin", my MySqlDatareader return all the records.
But when it is : "SELECT * FROM table_medecin WHERE Nom='xxx'", the return is NULL !!! But in MysqlWorkbench, I have the result...

I think that my sql syntax is good.

What's wrong ?

Thank you for your help...

Still looking for

Options: ReplyQuote


Subject
Written By
Posted
c# MysqlDataReader return null
January 24, 2016 11:53AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.