Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7928529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:45:29+00:00 2026-06-03T19:45:29+00:00

I am sending parameters from c# to the mysql database. Problem is that I

  • 0

I am sending parameters from c# to the mysql database. Problem is that I have decimal value in c# ( for example : 45.335 ) but when I am sending it to the mysql it keeps sending it in this format ( 45,335 )
What am I doing wrong?

    MySqlConnection con = null;
    MySqlCommand cmd = null;


    con = new MySqlConnection("server=localhost;database=data;uid=root;pwd=*****");
    con.Open();
    cmd = new MySqlCommand("insert into data values (null, ?ParName , ?Parname2);", con);
    cmd.Parameters.AddWithValue("?ParName", OSGconv.deciLat);
    cmd.Parameters.AddWithValue("?Parname2", OSGconv.deciLon);
    cmd.ExecuteNonQuery();

    con.Close();
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:45:31+00:00Added an answer on June 3, 2026 at 7:45 pm

    It’s almost certainly a localisation issue; in the UK we use a full stop as a decimal point, but on the continent, a comma is used instead. Check the country settings for your app and database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sending some parameters from a form in this way: myparam[0] : 'myValue1' myparam[1]
I have sending multiple parameters from my Checkbox Command. I have used a converter.
I got some sample code from the net here: http://www.javadb.com/sending-a-post-request-with-parameters-from-a-java-class That works fine. It
In my previous question I had a problem with sending parameters over the command
i have a report that i have been sending a parameter to which worked
sending mail along with embedded image using asp.net I have already used following but
From first.jsp I am sending some parameters to result.jsp as - <a href=result.jsp?itemId=${itemId}&itemName=${item.itemName}&itemCode=${item.itemCode}')>Show Items</a>
One desktop application needs to get some services from server. For example sending some
M sending the parameters from the jsp page, the code is <s:url id=url action=searchAction>
I am having many websites . In that I have to send some parameters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.