| 1 |
<!DOCTYPE html> |
| 2 |
<html><head> |
| 3 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 4 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
| 5 |
<link href="../sqlite.css" rel="stylesheet"> |
| 6 |
<title>SQLite Syntax: function-arguments</title> |
| 7 |
<!-- path=../ --> |
| 8 |
</head> |
| 9 |
<body> |
| 10 |
<div class=nosearch> |
| 11 |
<a href="../index.html"> |
| 12 |
<img class="logo" src="../images/sqlite370_banner.svg" alt="SQLite" border="0"> |
| 13 |
</a> |
| 14 |
<div><!-- IE hack to prevent disappearing logo --></div> |
| 15 |
<div class="tagline desktoponly"> |
| 16 |
Small. Fast. Reliable.<br>Choose any three. |
| 17 |
</div> |
| 18 |
<div class="menu mainmenu"> |
| 19 |
<ul> |
| 20 |
<li><a href="../index.html">Home</a> |
| 21 |
<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a> |
| 22 |
<li class='wideonly'><a href='../about.html'>About</a> |
| 23 |
<li class='desktoponly'><a href="../docs.html">Documentation</a> |
| 24 |
<li class='desktoponly'><a href="../download.html">Download</a> |
| 25 |
<li class='wideonly'><a href='../copyright.html'>License</a> |
| 26 |
<li class='desktoponly'><a href="../support.html">Support</a> |
| 27 |
<li class='desktoponly'><a href="../prosupport.html">Purchase</a> |
| 28 |
<li class='search' id='search_menubutton'> |
| 29 |
<a href="javascript:void(0)" onclick='toggle_search()'>Search</a> |
| 30 |
</ul> |
| 31 |
</div> |
| 32 |
<div class="menu submenu" id="submenu"> |
| 33 |
<ul> |
| 34 |
<li><a href='../about.html'>About</a> |
| 35 |
<li><a href='../docs.html'>Documentation</a> |
| 36 |
<li><a href='../download.html'>Download</a> |
| 37 |
<li><a href='../support.html'>Support</a> |
| 38 |
<li><a href='../prosupport.html'>Purchase</a> |
| 39 |
</ul> |
| 40 |
</div> |
| 41 |
<div class="searchmenu" id="searchmenu"> |
| 42 |
<form method="GET" action="../search"> |
| 43 |
<select name="s" id="searchtype"> |
| 44 |
<option value="d">Search Documentation</option> |
| 45 |
<option value="c">Search Changelog</option> |
| 46 |
</select> |
| 47 |
<input type="text" name="q" id="searchbox" value=""> |
| 48 |
<input type="submit" value="Go"> |
| 49 |
</form> |
| 50 |
</div> |
| 51 |
</div> |
| 52 |
<script> |
| 53 |
function toggle_div(nm) { |
| 54 |
var w = document.getElementById(nm); |
| 55 |
if( w.style.display=="block" ){ |
| 56 |
w.style.display = "none"; |
| 57 |
}else{ |
| 58 |
w.style.display = "block"; |
| 59 |
} |
| 60 |
} |
| 61 |
function toggle_search() { |
| 62 |
var w = document.getElementById("searchmenu"); |
| 63 |
if( w.style.display=="block" ){ |
| 64 |
w.style.display = "none"; |
| 65 |
} else { |
| 66 |
w.style.display = "block"; |
| 67 |
setTimeout(function(){ |
| 68 |
document.getElementById("searchbox").focus() |
| 69 |
}, 30); |
| 70 |
} |
| 71 |
} |
| 72 |
function div_off(nm){document.getElementById(nm).style.display="none";} |
| 73 |
window.onbeforeunload = function(e){div_off("submenu");} |
| 74 |
/* Disable the Search feature if we are not operating from CGI, since */ |
| 75 |
/* Search is accomplished using CGI and will not work without it. */ |
| 76 |
if( !location.origin || !location.origin.match || !location.origin.match(/http/) ){ |
| 77 |
document.getElementById("search_menubutton").style.display = "none"; |
| 78 |
} |
| 79 |
/* Used by the Hide/Show button beside syntax diagrams, to toggle the */ |
| 80 |
function hideorshow(btn,obj){ |
| 81 |
var x = document.getElementById(obj); |
| 82 |
var b = document.getElementById(btn); |
| 83 |
if( x.style.display!='none' ){ |
| 84 |
x.style.display = 'none'; |
| 85 |
b.innerHTML='show'; |
| 86 |
}else{ |
| 87 |
x.style.display = ''; |
| 88 |
b.innerHTML='hide'; |
| 89 |
} |
| 90 |
return false; |
| 91 |
} |
| 92 |
var antiRobot = 0; |
| 93 |
function antiRobotGo(){ |
| 94 |
if( antiRobot!=3 ) return; |
| 95 |
antiRobot = 7; |
| 96 |
var j = document.getElementById("mtimelink"); |
| 97 |
if(j && j.hasAttribute("data-href")) j.href=j.getAttribute("data-href"); |
| 98 |
} |
| 99 |
function antiRobotDefense(){ |
| 100 |
document.body.onmousedown=function(){ |
| 101 |
antiRobot |= 2; |
| 102 |
antiRobotGo(); |
| 103 |
document.body.onmousedown=null; |
| 104 |
} |
| 105 |
document.body.onmousemove=function(){ |
| 106 |
antiRobot |= 2; |
| 107 |
antiRobotGo(); |
| 108 |
document.body.onmousemove=null; |
| 109 |
} |
| 110 |
setTimeout(function(){ |
| 111 |
antiRobot |= 1; |
| 112 |
antiRobotGo(); |
| 113 |
}, 100) |
| 114 |
antiRobotGo(); |
| 115 |
} |
| 116 |
antiRobotDefense(); |
| 117 |
</script> |
| 118 |
<h1 align='center'>function-arguments</h1> |
| 119 |
<div class='imgcontainer'> |
| 120 |
<div style="max-width:456px"><svg xmlns='http://www.w3.org/2000/svg' style='font-size:initial;' class="pikchr" viewBox="0 0 456.566 223.344" data-pikchr-date="20250319161943"> |
| 121 |
<circle cx="5.76" cy="56.592" r="3.6" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 122 |
<polygon points="32.4,56.592 20.88,60.912 20.88,52.272" style="fill:rgb(0,0,0)"/> |
| 123 |
<path d="M9.36,56.592L26.64,56.592" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 124 |
<polygon points="66.96,26.352 55.44,30.672 55.44,22.032" style="fill:rgb(0,0,0)"/> |
| 125 |
<path d="M32.4,56.592 L 38.16,56.592 Q 43.92,56.592 43.92,41.592 L 43.92,41.352 Q 43.92,26.352 52.56,26.352 L 61.2,26.352" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 126 |
<path d="M82.08,41.472L150.336,41.472A15.12 15.12 0 0 0 165.456 26.352L165.456,26.352A15.12 15.12 0 0 0 150.336 11.232L82.08,11.232A15.12 15.12 0 0 0 66.96 26.352L66.96,26.352A15.12 15.12 0 0 0 82.08 41.472Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 127 |
<text x="116.208" y="26.352" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">DISTINCT</text> |
| 128 |
<polygon points="183.456,26.352 171.936,30.672 171.936,22.032" style="fill:rgb(0,0,0)"/> |
| 129 |
<path d="M165.456,26.352L177.696,26.352" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 130 |
<polygon points="218.016,56.592 206.496,60.912 206.496,52.272" style="fill:rgb(0,0,0)"/> |
| 131 |
<path d="M183.456,26.352 L 189.216,26.352 Q 194.976,26.352 194.976,41.352 L 194.976,41.592 Q 194.976,56.592 203.616,56.592 L 212.256,56.592" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 132 |
<polygon points="254.016,56.592 242.496,60.912 242.496,52.272" style="fill:rgb(0,0,0)"/> |
| 133 |
<path d="M218.016,56.592L248.256,56.592" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 134 |
<path d="M254.016,71.712L303.206,71.712L303.206,41.472L254.016,41.472Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 135 |
<text x="278.611" y="56.592" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">expr</text> |
| 136 |
<polygon points="447.206,56.592 435.686,60.912 435.686,52.272" style="fill:rgb(0,0,0)"/> |
| 137 |
<path d="M303.206,56.592L441.446,56.592" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 138 |
<circle cx="450.806" cy="56.592" r="3.6" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 139 |
<polygon points="116.208,56.592 104.688,60.912 104.688,52.272" style="fill:rgb(0,0,0)"/> |
| 140 |
<path d="M32.4,56.592L110.448,56.592" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 141 |
<polygon points="218.016,56.592 206.496,60.912 206.496,52.272" style="fill:rgb(0,0,0)"/> |
| 142 |
<path d="M116.208,56.592L212.256,56.592" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 143 |
<path d="M278.611,32.4A15.12 15.12 0 0 0 293.731 17.28A15.12 15.12 0 0 0 278.611 2.16A15.12 15.12 0 0 0 263.491 17.28A15.12 15.12 0 0 0 278.611 32.4Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 144 |
<text x="278.611" y="17.28" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">,</text> |
| 145 |
<polygon points="293.731,17.28 305.251,12.96 305.251,21.6" style="fill:rgb(0,0,0)"/> |
| 146 |
<path d="M303.206,56.592 L 314.726,56.592 Q 326.246,56.592 326.246,41.592 L 326.246,32.28 Q 326.246,17.28 312.869,17.28 L 299.491,17.28" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 147 |
<polygon points="254.016,56.592 242.496,60.912 242.496,52.272" style="fill:rgb(0,0,0)"/> |
| 148 |
<path d="M263.491,17.28 L 245.976,17.28 Q 230.976,17.28 230.976,32.28 L 230.976,41.592 Q 230.976,56.592 239.616,56.592 L 248.256,56.592" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 149 |
<path d="M228.283,207.792A15.12 15.12 0 0 0 243.403 192.672L243.403,192.672A15.12 15.12 0 0 0 228.283 177.552A15.12 15.12 0 0 0 213.163 192.672L213.163,192.672A15.12 15.12 0 0 0 228.283 207.792Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 150 |
<text x="228.283" y="192.672" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">*</text> |
| 151 |
<polygon points="213.163,192.672 201.643,196.992 201.643,188.352" style="fill:rgb(0,0,0)"/> |
| 152 |
<path d="M32.4,56.592 L 38.16,56.592 Q 43.92,56.592 43.92,71.592 L 43.92,177.672 Q 43.92,192.672 58.92,192.672 L 192.403,192.672 L 207.403,192.672" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 153 |
<polygon points="278.611,192.672 267.091,196.992 267.091,188.352" style="fill:rgb(0,0,0)"/> |
| 154 |
<path d="M243.403,192.672L272.851,192.672" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 155 |
<path d="M278.611,192.672 L 360.206,192.672 Q 375.206,192.672 390.206,192.672 L 394.766,192.672 Q 409.766,192.672 409.766,177.672 L 409.766,71.592 Q 409.766,56.592 415.526,56.592 L 421.286,56.592" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 156 |
<polygon points="228.283,216.864 216.763,221.184 216.763,212.544" style="fill:rgb(0,0,0)"/> |
| 157 |
<path d="M116.208,192.672 L 181.848,192.672 Q 196.848,192.672 196.848,204.768 Q 196.848,216.864 209.686,216.864 L 222.523,216.864" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 158 |
<path d="M228.283,216.864 L 242.683,216.864 Q 257.083,216.864 257.083,204.768 Q 257.083,192.672 262.843,192.672 L 268.603,192.672" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 159 |
<polygon points="90,117.072 78.48,121.392 78.48,112.752" style="fill:rgb(0,0,0)"/> |
| 160 |
<path d="M303.206,56.592 L 313.286,56.592 Q 323.366,56.592 323.366,71.592 L 323.366,71.832 Q 323.366,86.832 308.366,86.832 L 81.96,86.832 Q 66.96,86.832 66.96,101.832 L 66.96,102.072 Q 66.96,117.072 75.6,117.072 L 84.24,117.072" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 161 |
<path d="M105.12,132.192L149.645,132.192A15.12 15.12 0 0 0 164.765 117.072L164.765,117.072A15.12 15.12 0 0 0 149.645 101.952L105.12,101.952A15.12 15.12 0 0 0 90 117.072L90,117.072A15.12 15.12 0 0 0 105.12 132.192Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 162 |
<text x="127.382" y="117.072" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">ORDER</text> |
| 163 |
<polygon points="182.045,117.072 170.525,121.392 170.525,112.752" style="fill:rgb(0,0,0)"/> |
| 164 |
<path d="M164.765,117.072L176.285,117.072" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 165 |
<path d="M197.165,132.192L201.254,132.192A15.12 15.12 0 0 0 216.374 117.072L216.374,117.072A15.12 15.12 0 0 0 201.254 101.952L197.165,101.952A15.12 15.12 0 0 0 182.045 117.072L182.045,117.072A15.12 15.12 0 0 0 197.165 132.192Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 166 |
<text x="199.21" y="117.072" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">BY</text> |
| 167 |
<polygon points="245.174,117.072 233.654,121.392 233.654,112.752" style="fill:rgb(0,0,0)"/> |
| 168 |
<path d="M216.374,117.072L239.414,117.072" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 169 |
<path d="M245.174,132.192L375.005,132.192L375.005,101.952L245.174,101.952Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 170 |
<text x="310.09" y="117.072" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">ordering-term</text> |
| 171 |
<path d="M310.09,169.992A15.12 15.12 0 0 0 325.21 154.872A15.12 15.12 0 0 0 310.09 139.752A15.12 15.12 0 0 0 294.97 154.872A15.12 15.12 0 0 0 310.09 169.992Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 172 |
<text x="310.09" y="154.872" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">,</text> |
| 173 |
<polygon points="325.21,154.872 336.73,150.552 336.73,159.192" style="fill:rgb(0,0,0)"/> |
| 174 |
<path d="M375.005,117.072 L 380.765,117.072 Q 386.525,117.072 386.525,132.072 L 386.525,139.872 Q 386.525,154.872 371.525,154.872 L 345.97,154.872 L 330.97,154.872" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 175 |
<polygon points="245.174,117.072 233.654,121.392 233.654,112.752" style="fill:rgb(0,0,0)"/> |
| 176 |
<path d="M294.97,154.872 L 260.174,154.872 Q 245.174,154.872 236.534,154.872 Q 227.894,154.872 227.894,139.872 L 227.894,132.072 Q 227.894,117.072 233.654,117.072 L 239.414,117.072" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 177 |
<path d="M375.005,117.072 L 383.645,117.072 Q 392.285,117.072 392.285,102.072 L 392.285,71.592 Q 392.285,56.592 407.285,56.592 L 413.285,56.592 L 428.285,56.592" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 178 |
</svg> |
| 179 |
</div><br> |
| 180 |
|
| 181 |
Used by: <a href='./expr.html'>expr</a><br></br> |
| 182 |
References: <a href='./expr.html'>expr</a> <a href='./ordering-term.html'>ordering-term</a><br></br> |
| 183 |
See also: <a href='../lang_aggfunc.html'>lang_aggfunc.html</a> <a href='../lang_altertable.html'>lang_altertable.html</a> <a href='../lang_attach.html'>lang_attach.html</a> <a href='../lang_createindex.html'>lang_createindex.html</a> <a href='../lang_createtable.html'>lang_createtable.html</a> <a href='../lang_createtrigger.html'>lang_createtrigger.html</a> <a href='../lang_createview.html'>lang_createview.html</a> <a href='../lang_delete.html'>lang_delete.html</a> <a href='../lang_expr.html'>lang_expr.html</a> <a href='../lang_insert.html'>lang_insert.html</a> <a href='../lang_returning.html'>lang_returning.html</a> <a href='../lang_select.html'>lang_select.html</a> <a href='../lang_update.html'>lang_update.html</a> <a href='../lang_upsert.html'>lang_upsert.html</a> <a href='../lang_with.html'>lang_with.html</a> <a href='../partialindex.html'>partialindex.html</a> |
| 184 |
</div> |
| 185 |
|
| 186 |
|
| 187 |
|