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>
61 lines
6.2 KiB
HTML
61 lines
6.2 KiB
HTML
<a name="EN-US_TOPIC_0000001188482262"></a><a name="EN-US_TOPIC_0000001188482262"></a>
|
|
|
|
<h1 class="topictitle1">PG_CAST</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001188482262__a6d4ea64228b84d4e87ab8837753732bb"><strong id="EN-US_TOPIC_0000001188482262__b284989121713">PG_CAST</strong> records conversion relationships between data types.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188482262__t50af1f6fe5544a28ab615cef087c5758" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_CAST columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188482262__rebd358ae6f724ef1a40552398601fffd"><th align="left" class="cellrowborder" valign="top" width="18.459999999999997%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188482262__ac9574d3663454f0a91672008a5b6ba7e"><strong id="EN-US_TOPIC_0000001188482262__b84235270691445">Name</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_0000001188482262__a1b17971522ce4807b663be96b3ee4e01">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_0000001188482262__a492fac9366e7438380fab74c86fc9965">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188482262__r0f75e7aecb154286abe417ef335a5c78"><td class="cellrowborder" valign="top" width="18.459999999999997%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482262__abdca6cce301b42f9b0798015b6d1f15b">castsource</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482262__af5394ad4b18b400daf2c2a362f75d230">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482262__ad27f12778bae4c9d8eb5958e72f63620">OID of the source data type</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482262__rffc47c5a850e4b5e98ddb00c7f6d2527"><td class="cellrowborder" valign="top" width="18.459999999999997%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482262__a06f485524441415ab0d0a1d60e5f9273">casttarget</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482262__a0fd030c2f7aa46a29ce56db361265b56">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482262__a3db5d675de294bc6a1a38e8622f165c4">OID of the target data type</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482262__r470bbfd0f47c4c20a86253886d25885f"><td class="cellrowborder" valign="top" width="18.459999999999997%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482262__a44e5e9b89ee944d6847035621bf44e8f">castfunc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482262__af77c61e5e73e4ea1b56a3bfbd21b5b7a">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482262__af009abbd45974e628d93a0dfe93f8a7b">OID of the conversion function. If the value is <strong id="EN-US_TOPIC_0000001188482262__b99418337291">0</strong>, no conversion function is required.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188482262__r132abcfedb8048afac16148f1a8998b8"><td class="cellrowborder" valign="top" width="18.459999999999997%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482262__a2da926fe34144852875234d59afd4b77">castcontext</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482262__a40998b2a59ef4f76a0e1b1687136e6f4">"char"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482262__a8ad0ce8ede83467fa990df8e4818f56c">Conversion mode between the source and target data types</p>
|
|
<ul id="EN-US_TOPIC_0000001188482262__u1669cdacdbfb4e2c98b89578d6b98887"><li id="EN-US_TOPIC_0000001188482262__l4bd9ebb916d549cc847b48a5880d1293"><strong id="EN-US_TOPIC_0000001188482262__b10870174414296">e</strong> indicates that only explicit conversion can be performed (using the CAST or :: syntax).</li><li id="EN-US_TOPIC_0000001188482262__lc8802bc247ad4385995a37c66b7d7413"><strong id="EN-US_TOPIC_0000001188482262__b52431526193010">i</strong> indicates that only implicit conversion can be performed.</li><li id="EN-US_TOPIC_0000001188482262__la18dc7339ddb471988f4934798bc3d87"><strong id="EN-US_TOPIC_0000001188482262__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_0000001188482262__r3d4861a3eb9f436e9dfd6a2ee4df88e7"><td class="cellrowborder" valign="top" width="18.459999999999997%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188482262__a4d7d97a59b18414dabc923f308ce610b">castmethod</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188482262__aaa7711d8fd8e4f59a0c1fbbf3e021c55">"char"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188482262__ad057e130e0a044449d564ebaf4257907">Conversion method</p>
|
|
<ul id="EN-US_TOPIC_0000001188482262__ud930a19c882947ee840810d3a2cde704"><li id="EN-US_TOPIC_0000001188482262__lb72575c070304bbf9a0acdd0db0ca748"><strong id="EN-US_TOPIC_0000001188482262__b1179410423119">f</strong> indicates that conversion is performed using the specified function in the <strong id="EN-US_TOPIC_0000001188482262__b1438111532303">castfunc</strong> column.</li><li id="EN-US_TOPIC_0000001188482262__l32e0b98317354f5ead44c400d5e1e4b8"><strong id="EN-US_TOPIC_0000001188482262__b95501317133119">b</strong> indicates that binary forcible conversion rather than the specified function in the <strong id="EN-US_TOPIC_0000001188482262__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>
|
|
|