MySQL Forums :: MySQL for Visual Studio :: Read using ExecuteScalar

Advanced Search

Re: Read using ExecuteScalar
Posted by: Luis Penunuri ()
Date: March 09, 2016 10:54AM

Hi Gunnar,

What is the datatype of the field "cpichpower" ?

I did a copy paste of your code (just replacing the connection string and the database-table-field names), and I can see the result containing a dot.

Also, please consider that the code used above will return only the first column of the first row, as indicated here:

You can check whether the first result in fact contains a dot, using a tool like Workbench to execute the query above.


Options: ReplyQuote

Subject Views Written By Posted
Read using ExecuteScalar 868 Gunnar Wallier 03/01/2016 08:23AM
Re: Read using ExecuteScalar 418 Luis Penunuri 03/08/2016 05:28PM
Re: Read using ExecuteScalar 429 Gunnar Wallier 03/09/2016 12:03AM
Re: Read using ExecuteScalar 405 Luis Penunuri 03/09/2016 10:54AM
Re: Read using ExecuteScalar 380 Gunnar Wallier 03/10/2016 12:43AM

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.