Package MySQLdb :: Package constants :: Module FIELD_TYPE
[hide private]
[frames] | no frames]

Source Code for Module MySQLdb.constants.FIELD_TYPE

 1  """MySQL FIELD_TYPE Constants 
 2   
 3  These constants represent the various column (field) types that are 
 4  supported by MySQL. 
 5   
 6  """ 
 7   
 8  DECIMAL = 0 
 9  TINY = 1 
10  SHORT = 2 
11  LONG = 3 
12  FLOAT = 4 
13  DOUBLE = 5 
14  NULL = 6 
15  TIMESTAMP = 7 
16  LONGLONG = 8 
17  INT24 = 9 
18  DATE = 10 
19  TIME = 11 
20  DATETIME = 12 
21  YEAR = 13 
22  NEWDATE = 14 
23  VARCHAR = 15 
24  BIT = 16 
25  NEWDECIMAL = 246 
26  ENUM = 247 
27  SET = 248 
28  TINY_BLOB = 249 
29  MEDIUM_BLOB = 250 
30  LONG_BLOB = 251 
31  BLOB = 252 
32  VAR_STRING = 253 
33  STRING = 254 
34  GEOMETRY = 255 
35   
36  CHAR = TINY 
37  INTERVAL = ENUM 
38