DatabaseColumnType()

语法

Result = DatabaseColumnType(#Database, Column)
概要
Return the type of the specified column in the #Database.

参数

#Database The database to use.
Column The column to use.

返回值

Returns the type of the given column. If Result is 0, the type is undefined or the function has failed (e.g. it was not possible to determine the data type).

Type values can be:
  #PB_Database_Long  : Numeric format (a Long (.l) in PureBasic)
  #PB_Database_String: String format (a String (.s) in PureBasic)
  #PB_Database_Float : Numeric float format (a Float (.f) in PureBasic)
  #PB_Database_Double: Numeric double format (a Double (.d) in PureBasic)
  #PB_Database_Quad  : Numeric quad format (a Quad (.q) in PureBasic)
  #PB_Database_Blob  : Blob format

参阅

DatabaseColumns(), DatabaseColumnName(), DatabaseColumnSize()

已支持操作系统

所有

<- DatabaseColumnSize() - Database Index - DatabaseColumns() ->