doc-exports/docs/dws/dev/dws_06_0024.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-11-02 09:07:47 +00:00

196 lines
17 KiB
HTML

<a name="EN-US_TOPIC_0000001460721284"></a><a name="EN-US_TOPIC_0000001460721284"></a>
<h1 class="topictitle1">Data Types Supported by Column-Store Tables</h1>
<div id="body1533607109792"><p id="EN-US_TOPIC_0000001460721284__p12345102435313"><a href="#EN-US_TOPIC_0000001460721284__table1899319136548">Table 1</a> lists the data types supported by column-store tables. Other data types that are not listed are not supported currently.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001460721284__table1899319136548"></a><a name="table1899319136548"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001460721284__table1899319136548" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Data types supported by column-store tables</caption><thead align="left"><tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row829010145541"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p182901514135411">Category</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p15290191416548">Data Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p61339151106">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p16290114125415">Length</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row729018142548"><td class="cellrowborder" rowspan="10" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p4290171415543">Numeric Type</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p142901314175410">smallint</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1513410158014">Small integer, also called INT2</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1629011148541">2</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row17290191415415"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p12290101405412">integer</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p17134101512019">Typical choice for integer, also called INT4</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p929001420541">4</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row329091415410"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1929011418548">bigint</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p15134815507">Big integer, also called INT8</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1129018145546">8</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row6290161445410"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p16290614175414">decimal</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p61342015004">Arbitrary precision type</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p13290151417543">Variable length</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row629041410543"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1129031485418">numeric</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p121342151308">Arbitrary precision type</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1329071465410">Variable length</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row1290114155417"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1290101435412">real</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1134151511018">Single-precision floating point</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1729012143548">4</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row1829015147548"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p6290101411549">double precision</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p613419157016">Double-precision floating point</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p16290114165416">8</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row11290201411546"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p142901014115417">smallserial</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p15135131511011">Two-byte auto-incrementing integer</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p14290141414543">2</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row329031414544"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p16290121416541">serial</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1913531511013">Four-byte auto-incrementing integer</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p17290101435418">4</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row122901114185414"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1229051411545">bigserial</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p5135181510010">Eight-byte auto-incrementing integer</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p8290314155413">8</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row152905140543"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p129081465413">Monetary Type</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p2029014148549">money</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p181351315804">Currency amount</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p14290181475411">8</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row17290141495413"><td class="cellrowborder" rowspan="6" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p6290171485411">Character Type</p>
<p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p19103181316102"></p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1629015140543">character varying(n), varchar(n)</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p191359155016">Variable-length string</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p14290181415418">Variable length</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row172904145544"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p929015143540">character(n), char(n)</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p161368151305">Fixed-length string</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p16290111418547">n</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row20290914115417"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p32901214145415">character, char</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p21369158011">Single-byte internal type</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p142901914115411">1</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row12290814125418"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p4290101485417">text</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p15136141511016">Variable-length string</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1229020141546">Variable length</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row7290101405415"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p029012140542">nvarchar2</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p013619151608">Variable-length string</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p129014147548">Variable length</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row1310361391015"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p668552211104">clob</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p157651010191819">A big text object</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p157813210101">Variable length</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row19290141414543"><td class="cellrowborder" rowspan="6" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p14290131412540">Date/Time Type</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p3290151495415">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p10136815105">Date and time (with time zone)</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p20290111495420">8</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row172901014155417"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1829041445411">timestamp without time zone</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1713612155017">Date and time</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p192902145542">8</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row132901514165419"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p14290181415547">date</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p146701240141310">Date and time (Oracle compatibility mode); date (other compatibility modes)</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p34314487135">When using Oracle compatibility mode, the storage space is 8 bytes, whereas in other compatibility modes, it is 4 bytes.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row13290181445412"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1929020147545">time without time zone</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p15136915006">Time within one day.</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p12290114145411">8</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row102901714155411"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p13290131485413">time with time zone</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p913601516018">Time within one day (with time zone)</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p92902014105420">12</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_row1029061411542"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p1729012141543">interval</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p413618151402">Time interval</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001460721284__en-us_topic_0000001188588992_p172901314105418">16</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0008.html">Data Types</a></div>
</div>
</div>