forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
61 lines
6.2 KiB
HTML
61 lines
6.2 KiB
HTML
<a name="EN-US_TOPIC_0000001764651040"></a><a name="EN-US_TOPIC_0000001764651040"></a>
|
|
|
|
<h1 class="topictitle1">PG_CAST</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001764651040__a2a1def76b6ac4504baa4b000b641272b"><strong id="EN-US_TOPIC_0000001764651040__b284989121713">PG_CAST</strong> records conversion relationships between data types.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001764651040__t26af73584ee04dabafb350ba4936275e" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_CAST columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001764651040__r11110123c7884c81955ad1ca7023a08d"><th align="left" class="cellrowborder" valign="top" width="18.459999999999997%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001764651040__a02d62073a11e44ae90d759cc518fa8c5"><strong id="EN-US_TOPIC_0000001764651040__b28891840743415">Column</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.91%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001764651040__a579e03aae8c14025833fc70408fc09d7">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="63.629999999999995%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001764651040__aaf09e05942164e33aa4b9c2477321497">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001764651040__rf68e6beb18bc4a588d69e865cdacf45a"><td class="cellrowborder" valign="top" width="18.459999999999997%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764651040__aaa31ca8eb9e046f0ba987ada2cde6ed4">castsource</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764651040__a5ae7a9084d56492e970dd43407d37740">OID</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764651040__acaa6a4439ff348b2803fd4572df6293f">OID of the source data type</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764651040__r1bbada2bc15d4ce397ccda6ef060a2c3"><td class="cellrowborder" valign="top" width="18.459999999999997%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764651040__a6f68f603efe14f11b13097378f86c3c8">casttarget</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764651040__ad5b5517eae944dedbae221dfa04e1012">OID</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764651040__a9eef3d1ca3d149c8b4de3b46ba2072b1">OID of the target data type</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764651040__r3d3c153dcba940e88497c909ed6b1152"><td class="cellrowborder" valign="top" width="18.459999999999997%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764651040__a29b02ff1054b4307be0d314afc56d343">castfunc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764651040__ab759b889fcc8495a901e10c9d2c2db2c">OID</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764651040__a783dfee5fd714c27a98b70fef1cfb684">OID of the conversion function. If the value is <strong id="EN-US_TOPIC_0000001764651040__b99418337291">0</strong>, no conversion function is required.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764651040__rea27250c9ef24655bb410b1f3f79a9ac"><td class="cellrowborder" valign="top" width="18.459999999999997%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764651040__afef9904524d64c62b40b850db800e40a">castcontext</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764651040__a8cbd7c94fbd846df8b7772ccb7db71a8">Char</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764651040__a7a083bcb87c6434ea76536f89b1c610a">Conversion mode between the source and target data types</p>
|
|
<ul id="EN-US_TOPIC_0000001764651040__u618b51fe789f444c8e4b0b6680b94b9d"><li id="EN-US_TOPIC_0000001764651040__lb9c307ca5b744989b5aea8d8314d4d36"><strong id="EN-US_TOPIC_0000001764651040__b10870174414296">e</strong> indicates that only explicit conversion can be performed (using the CAST or :: syntax).</li><li id="EN-US_TOPIC_0000001764651040__l6702608f0948475e97a40a3b84b930b8"><strong id="EN-US_TOPIC_0000001764651040__b52431526193010">i</strong> indicates that only implicit conversion can be performed.</li><li id="EN-US_TOPIC_0000001764651040__l4641078978e34f5b9825bc381cf4fbc1"><strong id="EN-US_TOPIC_0000001764651040__b79017338300">a</strong> indicates that both explicit and implicit conversion can be performed between data types.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764651040__r5daa57335cde4f3ab5e65f05253ae091"><td class="cellrowborder" valign="top" width="18.459999999999997%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764651040__a9111f10cea9c4924ab92bd3883ddd7dd">castmethod</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764651040__ad6a6b6ab3b244939bd7a1a568dde4764">Char</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764651040__a7a62274320544b35a30f5e89a2251675">Conversion method</p>
|
|
<ul id="EN-US_TOPIC_0000001764651040__u928bdabb7ed9475196f096f9491b8fb1"><li id="EN-US_TOPIC_0000001764651040__l94b8a27dc8bd42a18ae74f04d1a22c4c"><strong id="EN-US_TOPIC_0000001764651040__b1179410423119">f</strong> indicates that conversion is performed using the specified function in the <strong id="EN-US_TOPIC_0000001764651040__b1438111532303">castfunc</strong> column.</li><li id="EN-US_TOPIC_0000001764651040__l4ebe1f3c3e1b4c3bb01ea31640a7cde1"><strong id="EN-US_TOPIC_0000001764651040__b95501317133119">b</strong> indicates that binary forcible conversion rather than the specified function in the <strong id="EN-US_TOPIC_0000001764651040__b18405813112">castfunc</strong> column is performed between data types.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0561.html">System Catalogs</a></div>
|
|
</div>
|
|
</div>
|
|
|