blob: 539514c6a4503223c19b0eeed4702456470bc470 [file] [log] [blame]
"use strict";(self.webpackChunkdoris_website=self.webpackChunkdoris_website||[]).push([[17761],{15680:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>d});var r=t(296540);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var s=r.createContext({}),u=function(e){var n=r.useContext(s),t=n;return e&&(t="function"==typeof e?e(n):l(l({},n),e)),t},c=function(e){var n=u(e.components);return r.createElement(s.Provider,{value:n},e.children)},p="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,i=e.mdxType,o=e.originalType,s=e.parentName,c=a(e,["components","mdxType","originalType","parentName"]),p=u(t),f=i,d=p["".concat(s,".").concat(f)]||p[f]||m[f]||o;return t?r.createElement(d,l(l({ref:n},c),{},{components:t})):r.createElement(d,l({ref:n},c))}));function d(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,l=new Array(o);l[0]=f;var a={};for(var s in n)hasOwnProperty.call(n,s)&&(a[s]=n[s]);a.originalType=e,a[p]="string"==typeof e?e:i,l[1]=a;for(var u=2;u<o;u++)l[u]=t[u];return r.createElement.apply(null,l)}return r.createElement.apply(null,t)}f.displayName="MDXCreateElement"},605028:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>l,default:()=>m,frontMatter:()=>o,metadata:()=>a,toc:()=>u});var r=t(58168),i=(t(296540),t(15680));const o={title:"IPV6_NUM_TO_STRING",language:"zh-CN"},l=void 0,a={unversionedId:"sql-manual/sql-functions/ip-functions/ipv6-num-to-string",id:"sql-manual/sql-functions/ip-functions/ipv6-num-to-string",title:"IPV6_NUM_TO_STRING",description:"\x3c!--",source:"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/ip-functions/ipv6-num-to-string.md",sourceDirName:"sql-manual/sql-functions/ip-functions",slug:"/sql-manual/sql-functions/ip-functions/ipv6-num-to-string",permalink:"/zh-CN/docs/dev/sql-manual/sql-functions/ip-functions/ipv6-num-to-string",draft:!1,tags:[],version:"current",frontMatter:{title:"IPV6_NUM_TO_STRING",language:"zh-CN"},sidebar:"docs",previous:{title:"IPV4_STRING_TO_NUM_OR_NULL",permalink:"/zh-CN/docs/dev/sql-manual/sql-functions/ip-functions/ipv4-string-to-num-or-null"},next:{title:"IPV6_STRING_TO_NUM",permalink:"/zh-CN/docs/dev/sql-manual/sql-functions/ip-functions/ipv6-string-to-num"}},s={},u=[{value:"IPV6_NUM_TO_STRING",id:"ipv6_num_to_string",level:2},{value:"Description",id:"description",level:3},{value:"Syntax",id:"syntax",level:4},{value:"Notice",id:"notice",level:4},{value:"Example",id:"example",level:3},{value:"Keywords",id:"keywords",level:3}],c={toc:u},p="wrapper";function m(e){let{components:n,...t}=e;return(0,i.yg)(p,(0,r.A)({},c,t,{components:n,mdxType:"MDXLayout"}),(0,i.yg)("h2",{id:"ipv6_num_to_string"},"IPV6_NUM_TO_STRING"),(0,i.yg)("p",null,"IPV6_NUM_TO_STRING"),(0,i.yg)("h3",{id:"description"},"Description"),(0,i.yg)("h4",{id:"syntax"},"Syntax"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"VARCHAR IPV6_NUM_TO_STRING(VARCHAR ipv6_num)")),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"VARCHAR INET6_NTOA(VARCHAR ipv6_num)")),(0,i.yg)("p",null,"\u63a5\u53d7\u5b57\u7b26\u4e32\u7c7b\u578b\u7684\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684IPv6\u5730\u5740\u3002\u4ee5\u6587\u672c\u683c\u5f0f\u8fd4\u56de\u6b64\u5730\u5740\u7684\u5b57\u7b26\u4e32\u3002\nIPv6\u6620\u5c04\u7684IPv4\u5730\u5740\u4ee5::ffff:111.222.33\u3002 "),(0,i.yg)("h4",{id:"notice"},"Notice"),(0,i.yg)("p",null,"\u5982\u679c\u8f93\u5165\u5b57\u7b26\u4e32\u4e0d\u662f\u6709\u6548\u7684 IPv6 \u5730\u5740\u7684\u4e8c\u8fdb\u5236\u7f16\u7801\uff0c\u5c06\u8fd4\u56de ",(0,i.yg)("inlineCode",{parentName:"p"},"NULL"),"\u3002\u8be5\u51fd\u6570\u6709\u4e00\u4e2a\u522b\u540d ",(0,i.yg)("inlineCode",{parentName:"p"},"INET6_NTOA"),"\u3002"),(0,i.yg)("h3",{id:"example"},"Example"),(0,i.yg)("pre",null,(0,i.yg)("code",{parentName:"pre",className:"language-sql"},"mysql> select ipv6_num_to_string(unhex('2A0206B8000000000000000000000011')) as addr;\n+--------------+\n| addr |\n+--------------+\n| 2a02:6b8::11 |\n+--------------+\n1 row in set (0.01 sec)\n\nmysql> select ipv6_num_to_string(\"-23vno12i34nlfwlsj\");\n+------------------------------------------+\n| ipv6_num_to_string('-23vno12i34nlfwlsj') |\n+------------------------------------------+\n| NULL |\n+------------------------------------------+\n1 row in set (0.14 sec)\n")),(0,i.yg)("h3",{id:"keywords"},"Keywords"),(0,i.yg)("p",null,"IPV6_NUM_TO_STRING, INET6_NTOA, IP"))}m.isMDXComponent=!0}}]);