擅长:python、mysql、java
<p>还有一个最佳选择:为地面军事系统操作员定制气流Postgres。因此,您可以使用CSV或JSON,并且没有任何限制</p>
<p>在原始操作器上更换:</p>
<pre class="lang-py prettyprint-override"><code>type_map = {
1114: 'DATETIME',
1184: 'TIMESTAMP',
1082: 'DATE',
1083: 'TIME',
1005: 'INTEGER',
1007: 'INTEGER',
1016: 'INTEGER',
20: 'INTEGER',
21: 'INTEGER',
23: 'INTEGER',
16: 'BOOLEAN',
700: 'FLOAT',
701: 'FLOAT',
1700: 'FLOAT',
}
</code></pre>
<p>以及转换:</p>
<pre class="lang-py prettyprint-override"><code> if isinstance(value, (datetime.datetime, datetime.date)):
return str(value)
if isinstance(value, datetime.time):
return str(value)
if isinstance(value, Decimal):
return float(value)
return value
</code></pre>