SqlDataReader.GetDataTypeName(Int32) 方法
定義
取得字串,表示指定之資料行的資料型別。Gets a string representing the data type of the specified column.
public:
virtual System::String ^ GetDataTypeName(int i);
public string GetDataTypeName (int i);
abstract member GetDataTypeName : int -> string
override this.GetDataTypeName : int -> string
Public Function GetDataTypeName (i As Integer) As String
參數
- i
- Int32
要尋找之資料行以零起始的序數位置。The zero-based ordinal position of the column to find.
傳回
字串,表示指定之資料行的資料型別。The string representing the data type of the specified column.
實作
備註
傳回後端資料類型的名稱。Returns the name of the back-end data type.
numeric
是 decimal
資料類型 SQL Server 中的同義字。numeric
is a synonym in SQL Server for the decimal
data type. GetDataTypeName
會針對定義為 decimal 或 numeric 的資料行傳回 "decimal"。GetDataTypeName
will return "decimal" for a column defined as either decimal or numeric.