blob: 21ed2dc8d82fc451241db9183f4ea8f6eb515fa6 [file] [log] [blame]
"use strict";(self.webpackChunkdoris_website=self.webpackChunkdoris_website||[]).push([[3926],{15680:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>d});var r=t(296540);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(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 i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),s=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=s(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},y=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),u=s(t),y=o,d=u["".concat(p,".").concat(y)]||u[y]||m[y]||a;return t?r.createElement(d,i(i({ref:n},c),{},{components:t})):r.createElement(d,i({ref:n},c))}));function d(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=y;var l={};for(var p in n)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l[u]="string"==typeof e?e:o,i[1]=l;for(var s=2;s<a;s++)i[s]=t[s];return r.createElement.apply(null,i)}return r.createElement.apply(null,t)}y.displayName="MDXCreateElement"},127548:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>i,default:()=>m,frontMatter:()=>a,metadata:()=>l,toc:()=>s});var r=t(58168),o=(t(296540),t(15680));const a={title:"pow",language:"zh-CN"},i=void 0,l={unversionedId:"sql-manual/sql-functions/math-functions/pow",id:"version-1.2/sql-manual/sql-functions/math-functions/pow",title:"pow",description:"\x3c!--",source:"@site/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.2/sql-manual/sql-functions/math-functions/pow.md",sourceDirName:"sql-manual/sql-functions/math-functions",slug:"/sql-manual/sql-functions/math-functions/pow",permalink:"/zh-CN/docs/1.2/sql-manual/sql-functions/math-functions/pow",draft:!1,tags:[],version:"1.2",frontMatter:{title:"pow",language:"zh-CN"},sidebar:"docs",previous:{title:"cbrt",permalink:"/zh-CN/docs/1.2/sql-manual/sql-functions/math-functions/cbrt"},next:{title:"degrees",permalink:"/zh-CN/docs/1.2/sql-manual/sql-functions/math-functions/degrees"}},p={},s=[{value:"pow",id:"pow",level:2},{value:"description",id:"description",level:3},{value:"Syntax",id:"syntax",level:4},{value:"example",id:"example",level:3},{value:"keywords",id:"keywords",level:3}],c={toc:s},u="wrapper";function m(e){let{components:n,...t}=e;return(0,o.yg)(u,(0,r.A)({},c,t,{components:n,mdxType:"MDXLayout"}),(0,o.yg)("h2",{id:"pow"},"pow"),(0,o.yg)("h3",{id:"description"},"description"),(0,o.yg)("p",null,"\u8fd4\u56de\u7b2c\u4e00\u4e2a\u53c2\u6570\u7684\u503c\uff0c\u8be5\u503c\u662f\u7b2c\u4e8c\u4e2a\u53c2\u6570\u7684\u5e42\u3002"),(0,o.yg)("admonition",{type:"tip"},(0,o.yg)("p",{parentName:"admonition"},"\u8be5\u51fd\u6570\u7684\u5176\u4ed6\u522b\u540d\u4e3a ",(0,o.yg)("inlineCode",{parentName:"p"},"power"),"\u3001",(0,o.yg)("inlineCode",{parentName:"p"},"fpow"),"\u3001",(0,o.yg)("inlineCode",{parentName:"p"},"dpow"))),(0,o.yg)("h4",{id:"syntax"},"Syntax"),(0,o.yg)("p",null,(0,o.yg)("inlineCode",{parentName:"p"},"DOUBLE pow(DOUBLE a, DOUBLE b)"),"\n\u8fd4\u56de",(0,o.yg)("inlineCode",{parentName:"p"},"a"),"\u7684",(0,o.yg)("inlineCode",{parentName:"p"},"b"),"\u6b21\u65b9."),(0,o.yg)("h3",{id:"example"},"example"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre"},"mysql> select pow(2,0);\n+---------------+\n| pow(2.0, 0.0) |\n+---------------+\n| 1 |\n+---------------+\nmysql> select pow(2,3);\n+---------------+\n| pow(2.0, 3.0) |\n+---------------+\n| 8 |\n+---------------+\nmysql> select pow(3,2.4);\n+--------------------+\n| pow(3.0, 2.4) |\n+--------------------+\n| 13.966610165238235 |\n+--------------------+\n")),(0,o.yg)("h3",{id:"keywords"},"keywords"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre"},"POW, POWER, FPOW, DPOW\n")))}m.isMDXComponent=!0}}]);