lsy3993 commented on code in PR #1887: URL: https://github.com/apache/doris-website/pull/1887#discussion_r1923776953
########## docs/sql-manual/sql-functions/scalar-functions/ip-functions/ipv4-to-ipv6.md: ########## @@ -22,30 +22,30 @@ specific language governing permissions and limitations under the License. --> -## IPV4_TO_IPV6 +## Description +Convert ipv4 type address to ipv6 type address. -IPV4_TO_IPV6 - -### Description - -#### Syntax - -`IPV6 IPV4_TO_IPV6(IPV4 ipv4)` +## Syntax +```sql +IPV4_TO_IPV6(IPV4 <ipv4>) +``` -accept an IPv4 type address and return the converted IPv6 type address. +## Parameters +| Parameter | Description | +|-----------|--------------------------------------------------| +| `<ipv4>` | An IPv4 type address | -### Example +## Return Value +Returns the converted IPv6 type address. +## Example ```sql -mysql [(none)]>select ipv6_num_to_string(ipv4_to_ipv6(to_ipv4('192.168.0.1'))); +select ipv6_num_to_string(ipv4_to_ipv6(to_ipv4('192.168.0.1'))); +``` +```text +----------------------+ | '::ffff:192.168.0.1' | Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org