I am reading from an Oracle database and would like to check whether the field is column type I have tried the following: Neither work. If I do: gives it: The best way is possible: If you want to check the exact type, cx_Oracle.DATETIME .
If the column type [columnIndex] == cx_Oracle.DATETIME:
If the column type is [columnIndex] cx_Oracle.DATETIME:
Print column type [columnIndex]
& lt; Type 'cx_Oracle.DATETIME' & gt; Edit If the column type [columnIndex] == dbDateType
isinstance (column type [column index], cx_Oracle.DATETIME)
type (obj) == myType woudl work, then using
isinstance sub-typing Allows for
No comments:
Post a Comment