Why is a SQL float different from a C# float

后端 未结 6 591
清酒与你
清酒与你 2020-11-30 11:59

Howdy, I have a DataRow pulled out of a DataTable from a DataSet. I am accessing a column that is defined in SQL as a float datatype. I am trying to assign that value to

6条回答
  •  借酒劲吻你
    2020-11-30 12:37

    A float in SQL is a Double in the CLR (C#/VB). There's a table of SQL data types with the CLR equivalents on MSDN.

提交回复
热议问题