Represents MySQL type DECIMAL.
The following example demonstrates how to insert to and fetch from a table some
MySqlDecimal values.
MySqlCommand insertCommand = new MySqlCommand("INSERT INTO decimal_test (f_decimal) VALUES (:p1)", connection);
insertCommand.Parameters.Add("p1", MySqlDecimal.MaxValue);
insertCommand.ExecuteNonQuery();
MySqlCommand selectCommand = new MySqlCommand("SELECT f_decimal FROM decimal_test", connection);
using (MySqlDataReader reader = selectCommand.ExecuteReader())
while (reader.Read())
for (int i = 0; i < reader.FieldCount; ++i)
Console.WriteLine(reader.GetProviderSpecificValue(i));
System.Object
System.ValueType
Devart.Data.MySql.MySqlDecimal
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2