doc-exports/docs/dws/tool/dws_16_0108.html
Lu, Huayi 27019c2991 DWS TOOL 830.201 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
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-05-16 07:35:25 +00:00

164 lines
20 KiB
HTML

<a name="EN-US_TOPIC_0000001819336161"></a><a name="EN-US_TOPIC_0000001819336161"></a>
<h1 class="topictitle1">Numeric Types</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_section192307919206"><h4 class="sectiontitle">Overview</h4><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_p723421592013">A data type is a basic data attribute. Occupied storage space and allowed operations vary according to data types. In a database, data is stored in tables, in which a data type is specified for each column. Data in the column must be of its allowed data type. The following table lists an example of converting MySQL numeric types to GaussDB(DWS) numeric types.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_section1171617252110"><h4 class="sectiontitle">Type Comparison</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_table5353144454216" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Numeric type mapping</caption><thead align="left"><tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row10354144114211"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.2.4.1.1"><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_p17354144424211">MySQL Numeric Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.2.4.1.2"><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_p133541444104216">MySQL INPUT</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.2.2.4.1.3"><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_p1035413446421">GaussDB(DWS) Output</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row103541044184216"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1145525803310">DEC</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p6122191643116">DEC</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p191227165310">DEC[(M[,D])] [UNSIGNED] [ZEROFILL]</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p4495122123113">DECIMAL</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1049542133119">DECIMAL[(M[,D])]</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row935415443424"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1734893103419">DECIMAL</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1412261633113">DECIMAL[(M[,D])] [UNSIGNED] [ZEROFILL]</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p4495162110313">DECIMAL[(M[,D])]</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row163541744124215"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p16544194317349">DOUBLE PRECISION</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p172971727173114">DOUBLE PRECISION</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p929792716312">DOUBLE PRECISION [(M[,D])] [UNSIGNED] [ZEROFILL]</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p153531132153112">DOUBLE PRECISION</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p83531932113119">DOUBLE PRECISION</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row5354244104214"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p198421349153414">DOUBLE</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1758781116308">DOUBLE[(M[,D])] [UNSIGNED] [ZEROFILL]</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p458771193013">DOUBLE PRECISION</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row14354154415420"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1339218548348">FIXED</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1264214483317">FIXED</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1643124819315">FIXED[(M[,D])] [UNSIGNED] [ZEROFILL]</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p12045323110">DECIMAL</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p190453153111">DECIMAL[(M[,D])]</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row6760182824510"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p957655913341">FLOAT</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1019519591315">FLOAT</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p11195159173111">FLOAT [(M[,D])] [UNSIGNED] [ZEROFILL]</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p17195205910315">FLOAT(p) [UNSIGNED] [ZEROFILL]</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1576212393218">REAL</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p16762333326">REAL</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1762234321">REAL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row15354144164218"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p561115710329">INT</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p12599171083518">INT</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p15998109355">INT(p) [UNSIGNED] [ZEROFILL]</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1149371693510">INTEGER</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p7493121612358">INTEGER(p)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row7686925144511"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p18891517183215">INTEGER</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1395152910355">INTEGER</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1595829153518">INTEGER(p) [UNSIGNED] [ZEROFILL]</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p69541137153512">INTEGER</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p495423720352">INTEGER(p)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row147572274514"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1864702623214">MEDIUMINT</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p2847114311357">MEDIUMINT</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p14847194312357">MEDIUMINT(p) [UNSIGNED] [ZEROFILL]</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p114588495358">INTEGER</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1458164903515">INTEGER(p)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row12294121912457"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p978029123212">NUMERIC</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p763725413352">NUMERIC</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p11637145413514">NUMERIC [(M[,D])] [UNSIGNED] [ZEROFILL]</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p519685983512">DECIMAL</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p15196165914357">DECIMAL[(M[,D])]</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row15471715134519"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p6649183263220">REAL</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p864913233216">REAL[(M[,D])]</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p18649732173218">REAL/DOUBLE PRECISION</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row0585141064514"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p136013160365">SMALLINT</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p193163592368">SMALLINT</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p4316959113611">SMALLINT(p) [UNSIGNED] [ZEROFILL]</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1560516143613">SMALLINT</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_row1435416441426"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1447015528365">TINYINT</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1533512820374">TINYINT</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p183351387371">TINYINT(n)</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p113353873716">TINYINT(n) ZEROFILL</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1433528103713">TINYINT(n) UNSIGNED ZEROFILL</p>
</td>
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p14111613113716">SMALLINT</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p16411413113711">SMALLINT</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1741151313719">SMALLINT</p>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p1411191316377">TINYINT</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164385_note1544699172110"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_ul11959161473320"><li id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_li2959114193313">When the TINYINT type is converted, if it is unsigned (UNSIGNED), it is converted to TINYINT. Otherwise, it is converted to SMALLINT.</li><li id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_li119591147336">The REAL type is converted to DOUBLE PRECISION by default. If <strong id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_b1519605393419">table.database.realAsFlag</strong> in the <strong id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_b66936117359">features-mysql.properties</strong> configuration file is set to <strong id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_b941915183518">true </strong>(<strong id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_b1211141243515">false</strong> by default), the type is converted to REAL.</li></ul>
</div></div>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p16911452145619"><strong id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_b65654032932318">Input: TINYINT</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_screen20267101225912">CREATE TABLE IF NOT EXISTS `runoob_dataType_test`(
`dataType_1` TINYINT,
`dataType_2` TINYINT(0),
`dataType_3` TINYINT(255),
`dataType_4` TINYINT(255) UNSIGNED ZEROFILL,
`dataType_5` TINYINT(255) ZEROFILL
);</pre>
<p id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_p0250919155915"><strong id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_b3847122717596">Output</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001819336161__en-us_topic_0000001706224213_en-us_topic_0000001433745249_en-us_topic_0214164566_screen38651030125919">CREATE TABLE IF NOT EXISTS "public"."runoob_datatype_test"
(
"datatype_1" SMALLINT,
"datatype_2" SMALLINT,
"datatype_3" SMALLINT,
"datatype_4" TINYINT,
"datatype_5" SMALLINT
)
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
NOCOMPRESS
DISTRIBUTE BY HASH ("datatype_1");</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0106.html">Data Types</a></div>
</div>
</div>