1"use strict";(self.webpackChunkvelodb_docs=self.webpackChunkvelodb_docs||[]).push([["111366"],{197409(e,n,t){t.r(n),t.d(n,{metadata:()=>s,default:()=>u,frontMatter:()=>a,contentTitle:()=>c,toc:()=>o,assets:()=>l});var s=JSON.parse('{"id":"sql-manual/sql-functions/scalar-functions/string-functions/ascii","title":"ASCII","description":"Returns the ASCII code of the first character of a string","source":"@site/enterprise_versioned_docs/version-3.x/sql-manual/sql-functions/scalar-functions/string-functions/ascii.md","sourceDirName":"sql-manual/sql-functions/scalar-functions/string-functions","slug":"/sql-manual/sql-functions/scalar-functions/string-functions/ascii","permalink":"/enterprise/3.x/sql-manual/sql-functions/scalar-functions/string-functions/ascii","draft":false,"unlisted":false,"tags":[],"version":"3.x","frontMatter":{"title":"ASCII","language":"en","description":"Returns the ASCII code of the first character of a string"},"sidebar":"enterprise","previous":{"title":"APPEND_TRAILING_CHAR_IF_ABSENT","permalink":"/enterprise/3.x/sql-manual/sql-functions/scalar-functions/string-functions/append-trailing-char-if-absent"},"next":{"title":"AUTO_PARTITION_NAME","permalink":"/enterprise/3.x/sql-manual/sql-functions/scalar-functions/string-functions/auto-partition-name"}}'),r=t(474848),i=t(28453);let a={title:"ASCII",language:"en",description:"Returns the ASCII code of the first character of a string"},c,l={},o=[{value:"Description",id:"description",level:2},{value:"Syntax",id:"syntax",level:2},{value:"Parameters",id:"parameters",level:2},{value:"Return value",id:"return-value",level:2},{value:"Example",id:"example",level:2}];function d(e){let n={code:"code",h2:"h2",p:"p",pre:"pre",str:"str",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"description",children:"Description"}),"\n",(0,r.jsx)(n.p,{children:"Returns the ASCII code of the first character of a string"}),"\n",(0,r.jsx)(n.h2,{id:"syntax",children:"Syntax"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-sql",children:"ASCII ( <str> )\n"})}),"\n",(0,r.jsx)(n.h2,{id:"parameters",children:"Parameters"}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:"Parameter"}),(0,r.jsx)(n.th,{children:"Description"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"<str>"})}),(0,r.jsx)(n.td,{children:"The string whose ASCII code of the first character needs to be calculated"})]})})]}),"\n",(0,r.jsx)(n.h2,{id:"return-value",children:"Return value"}),"\n",(0,r.jsxs)(n.p,{children:["Parameter ",(0,r.jsx)(n.str,{children:" ASCII code of the first character"})]}),"\n",(0,r.jsx)(n.h2,{id:"example",children:"Example"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-sql",children:"SELECT ASCII('1'),ASCII('234')\n"})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-text",children:"+------------+--------------+\n| ascii('1') | ascii('234') |\n+------------+--------------+\n| 49 | 50 |\n+------------+--------------+\n"})})]})}function u(e={}){let{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},28453(e,n,t){t.d(n,{R:()=>a,x:()=>c});var s=t(296540);let r={},i=s.createContext(r);function a(e){let n=s.useContext(i);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.