forked from docs/doc-exports
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>
29 lines
6.0 KiB
HTML
29 lines
6.0 KiB
HTML
<a name="EN-US_TOPIC_0000001188482168"></a><a name="EN-US_TOPIC_0000001188482168"></a>
|
|
|
|
<h1 class="topictitle1">Platform and Client Compatibility</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001188482168__en-us_topic_0059779195_p530012210918">Many platforms use the database system. External compatibility of the database system provides a lot of conveniences for platforms.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001188482168__s465b1881b33b48779cd75f1e0157ed04"><h4 class="sectiontitle">transform_null_equals</h4><p id="EN-US_TOPIC_0000001188482168__a0fa0671c479f4f5283aef12a32f6caee"><strong id="EN-US_TOPIC_0000001188482168__en-us_topic_0059779195_en-us_topic_0058967662_b57839303">Parameter description</strong>: Determines whether expressions of the form expr = NULL (or NULL = expr) are treated as expr IS NULL. They return true if expr evaluates to <strong id="EN-US_TOPIC_0000001188482168__b1050594414610">NULL</strong>, and false otherwise.</p>
|
|
<ul id="EN-US_TOPIC_0000001188482168__u7e211590a3d6447c8dc67e1ff8d52645"><li id="EN-US_TOPIC_0000001188482168__lda1f58bf407243a9be3dec57e686ecd9">The correct SQL-standard-compliant behavior of expr = NULL is to always return null (unknown).</li><li id="EN-US_TOPIC_0000001188482168__la8d4f39991e14533abcb88ecc31c5231">Filtered forms in MS Access generate queries that appear to use expr = NULL to test for null values. If you turn this option on, you can use this interface to access the database.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001188482168__p492024913111"><strong id="EN-US_TOPIC_0000001188482168__b9103194032714">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001188482168__aa966be2f0f3041cebe5007536c305b50"><strong id="EN-US_TOPIC_0000001188482168__en-us_topic_0059779195_en-us_topic_0058967662_b9110456">Value range</strong>: Boolean</p>
|
|
<ul id="EN-US_TOPIC_0000001188482168__uff36d86872544950b54cc0b4a7befcd1"><li id="EN-US_TOPIC_0000001188482168__lf9f2e54fc4de40ddb3b0231e0c79e478"><strong id="EN-US_TOPIC_0000001188482168__b84235270618506">on</strong> indicates expressions of the form expr = NULL (or NULL = expr) are treated as expr IS NULL.</li><li id="EN-US_TOPIC_0000001188482168__l60697a10ff1b435fa06d4aba7f4e2fbd"><strong id="EN-US_TOPIC_0000001188482168__b842352706185024">off</strong> indicates expr = NULL always returns NULL.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001188482168__a0cdc12756eef44f58f5af3d2dfaaa85c"><strong id="EN-US_TOPIC_0000001188482168__b0197192335114">Default value</strong>: <strong id="EN-US_TOPIC_0000001188482168__b7198112395112">off</strong></p>
|
|
<div class="note" id="EN-US_TOPIC_0000001188482168__note1640115117223"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001188482168__p194016512225">New users are always confused about the semantics of expressions involving <strong id="EN-US_TOPIC_0000001188482168__b1927919414521">NULL</strong> values. Therefore, <strong id="EN-US_TOPIC_0000001188482168__b14207825165114">off</strong> is used as the default value.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188482168__s8f140de59591465d93205f2b55cbbf97"><h4 class="sectiontitle">td_compatible_truncation</h4><p id="EN-US_TOPIC_0000001188482168__a73c968a2349d4b43b0a31081276b1d40"><strong id="EN-US_TOPIC_0000001188482168__en-us_topic_0059779195_ad1519c7350894050b41766ffadb349e9">Parameter description</strong>: Determines whether to enable features compatible with a Teradata database. You can set this parameter to <strong id="EN-US_TOPIC_0000001188482168__b84235270693039">on</strong> when connecting to a database compatible with the Teradata database, so that when you perform the INSERT operation, overlong strings are truncated based on the allowed maximum length before being inserted into char- and varchar-type columns in the target table. This ensures all data is inserted into the target table without errors reported.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001188482168__ne10d54ac562b4e8da4eb8a4c397413b1"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188482168__ul148861376132"><li id="EN-US_TOPIC_0000001188482168__li48861437161312">The string truncation function cannot be used if the <strong id="EN-US_TOPIC_0000001188482168__b84235270615747">INSERT</strong> statement includes a foreign table.</li><li id="EN-US_TOPIC_0000001188482168__li9886123701317">If inserting multi-byte character data (such as Chinese characters) to database with the character set byte encoding (SQL_ASCII, LATIN1), and the character data crosses the truncation position, the string is truncated based on its bytes instead of characters. Unexpected result will occur in tail after the truncation. If you want correct truncation result, you are advised to adopt encoding set such as UTF8, which has no character data crossing the truncation position.</li></ul>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001188482168__p1970111811131"><strong id="EN-US_TOPIC_0000001188482168__b897315536272">Type</strong>: USERSET</p>
|
|
<p id="EN-US_TOPIC_0000001188482168__acf442b11d2384499baa27959e961d122"><strong id="EN-US_TOPIC_0000001188482168__en-us_topic_0059779195_ad30c759dbc054219938f1769e85d4ef6">Value range</strong>: Boolean</p>
|
|
<ul id="EN-US_TOPIC_0000001188482168__u0c1e022745b04dc4a513bd312bfa9057"><li id="EN-US_TOPIC_0000001188482168__lf704409cd1b14a08be610ed1088a6556"><strong id="EN-US_TOPIC_0000001188482168__b8423527069403">on</strong> indicates overlong strings are truncated.</li><li id="EN-US_TOPIC_0000001188482168__le3a3106edd564327a122e2147ff7460c"><strong id="EN-US_TOPIC_0000001188482168__b84235270694016">off</strong> indicates overlong strings are not truncated.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001188482168__a0ff0cda68a844c3599bcd14b9b5bd3ad"><strong id="EN-US_TOPIC_0000001188482168__b692903543">Default value</strong>: <strong id="EN-US_TOPIC_0000001188482168__b184903155">off</strong></p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0929.html">Version and Platform Compatibility</a></div>
|
|
</div>
|
|
</div>
|
|
|