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