forked from docs/doc-exports
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>
30 lines
2.1 KiB
HTML
30 lines
2.1 KiB
HTML
<a name="EN-US_TOPIC_0000001772536484"></a><a name="EN-US_TOPIC_0000001772536484"></a>
|
|
|
|
<h1 class="topictitle1">Boolean</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001772536484__en-us_topic_0000001706104781_en-us_topic_0000001383349520_section2222172812614"><h4 class="sectiontitle">Overview</h4><p id="EN-US_TOPIC_0000001772536484__en-us_topic_0000001706104781_en-us_topic_0000001383349520_p18815135617113">MySQL supports both BOOL and BOOLEAN. DSC supports the following type conversions:</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001772536484__en-us_topic_0000001706104781_en-us_topic_0000001383349520_section5960437112617"><h4 class="sectiontitle">Type Mapping</h4><p id="EN-US_TOPIC_0000001772536484__en-us_topic_0000001706104781_en-us_topic_0000001383349520_en-us_topic_0214164703_p8060118"><strong id="EN-US_TOPIC_0000001772536484__en-us_topic_0000001706104781_en-us_topic_0000001383349520_b88298665032447">Input: BOOL/BOOLEAN</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001772536484__en-us_topic_0000001706104781_en-us_topic_0000001383349520_en-us_topic_0214164703_screen17940112818193">CREATE TABLE IF NOT EXISTS `runoob_dataType_test`(
|
|
`dataType_1` INT,
|
|
`dataType_2` BOOL,
|
|
`dataType_3` BOOLEAN
|
|
);</pre>
|
|
<p id="EN-US_TOPIC_0000001772536484__en-us_topic_0000001706104781_en-us_topic_0000001383349520_en-us_topic_0214164703_p837154111192"><strong id="EN-US_TOPIC_0000001772536484__en-us_topic_0000001706104781_en-us_topic_0000001383349520_en-us_topic_0214164703_b28071508198">Output</strong></p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001772536484__en-us_topic_0000001706104781_en-us_topic_0000001383349520_en-us_topic_0214164703_screen151561253121913">CREATE TABLE IF NOT EXISTS "public"."runoob_datatype_test"
|
|
(
|
|
"datatype_1" INTEGER,
|
|
"datatype_2" BOOLEAN,
|
|
"datatype_3" BOOLEAN
|
|
)
|
|
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>
|
|
|