| 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: create-trigger-stmt</title> |
| 7 |
<!-- path=../ --> |
| 8 |
</head> |
| 9 |
<body> |
| 10 |
<div class=nosearch> |
| 11 |
<a href="../index.html"> |
| 12 |
<img class="logo" src="../images/sqlite370_banner.gif" 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'>create-trigger-stmt</h1> |
| 119 |
<div class='imgcontainer'> |
| 120 |
<div style="max-width:678px"><svg xmlns='http://www.w3.org/2000/svg' class="pikchr" viewBox="0 0 678.058 746.712"> |
| 121 |
<circle cx="5" cy="17" r="3.6" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 122 |
<polygon points="32,17 20,21 20,12" style="fill:rgb(0,0,0)"/> |
| 123 |
<path d="M9,17L26,17" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 124 |
<path d="M47,32L100,32A15 15 0 0 0 116 17A15 15 0 0 0 100 2L47,2A15 15 0 0 0 32 17A15 15 0 0 0 47 32Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 125 |
<text x="74" y="17" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">CREATE</text> |
| 126 |
<path d="M167,56L199,56A15 15 0 0 0 214 41A15 15 0 0 0 199 26L167,26A15 15 0 0 0 152 41A15 15 0 0 0 167 56Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 127 |
<text x="183" y="41" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">TEMP</text> |
| 128 |
<path d="M167,94L259,94A15 15 0 0 0 274 79A15 15 0 0 0 259 64L167,64A15 15 0 0 0 152 79A15 15 0 0 0 167 94Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 129 |
<text x="213" y="79" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">TEMPORARY</text> |
| 130 |
<path d="M325,32L386,32A15 15 0 0 0 401 17A15 15 0 0 0 386 2L325,2A15 15 0 0 0 310 17A15 15 0 0 0 325 32Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 131 |
<text x="355" y="17" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">TRIGGER</text> |
| 132 |
<polygon points="213,17 201,21 201,12" style="fill:rgb(0,0,0)"/> |
| 133 |
<path d="M116,17L207,17" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 134 |
<polygon points="310,17 299,21 299,12" style="fill:rgb(0,0,0)"/> |
| 135 |
<path d="M213,17L305,17" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 136 |
<polygon points="152,41 140,45 140,37" style="fill:rgb(0,0,0)"/> |
| 137 |
<path d="M116,17 L 123,17 Q 131,17 131,29 Q 131,41 138,41 L 146,41" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 138 |
<polygon points="152,79 140,83 140,74" style="fill:rgb(0,0,0)"/> |
| 139 |
<path d="M116,17 L 123,17 Q 131,17 131,32 L 131,64 Q 131,79 138,79 L 146,79" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 140 |
<path d="M274,79 L 282,79 Q 289,79 289,64 L 289,32 Q 289,17 294,17 L 299,17" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 141 |
<path d="M214,41 L 274,41 Q 289,41 289,33 L 289,26" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 142 |
<polygon points="437,17 425,21 425,12" style="fill:rgb(0,0,0)"/> |
| 143 |
<path d="M401,17L431,17" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 144 |
<path d="M452,32A15 15 0 0 0 467 17A15 15 0 0 0 452 2A15 15 0 0 0 437 17A15 15 0 0 0 452 32Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 145 |
<text x="452" y="17" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">IF</text> |
| 146 |
<polygon points="490,17 478,21 478,12" style="fill:rgb(0,0,0)"/> |
| 147 |
<path d="M467,17L484,17" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 148 |
<path d="M505,32L525,32A15 15 0 0 0 540 17A15 15 0 0 0 525 2L505,2A15 15 0 0 0 490 17A15 15 0 0 0 505 32Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 149 |
<text x="515" y="17" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">NOT</text> |
| 150 |
<polygon points="563,17 552,21 552,12" style="fill:rgb(0,0,0)"/> |
| 151 |
<path d="M540,17L558,17" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 152 |
<path d="M578,32L623,32A15 15 0 0 0 638 17A15 15 0 0 0 623 2L578,2A15 15 0 0 0 563 17A15 15 0 0 0 578 32Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 153 |
<text x="601" y="17" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">EXISTS</text> |
| 154 |
<polygon points="213,109 224,105 224,113" style="fill:rgb(0,0,0)"/> |
| 155 |
<path d="M401,17 L 408,17 Q 416,17 416,32 L 416,94 Q 416,109 401,109 L 234,109 L 219,109" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 156 |
<polygon points="563,109 575,105 575,113" style="fill:rgb(0,0,0)"/> |
| 157 |
<path d="M638,17 L 646,17 Q 653,17 653,32 L 653,94 Q 653,109 638,109 L 584,109 L 569,109" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 158 |
<path d="M563,109L310,109" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 159 |
<polygon points="28,147 17,151 17,142" style="fill:rgb(0,0,0)"/> |
| 160 |
<path d="M310,109 L 20,109 Q 5,109 5,124 L 5,132 Q 5,147 14,147 L 23,147" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 161 |
<path d="M43,162L140,162A15 15 0 0 0 155 147A15 15 0 0 0 140 132L43,132A15 15 0 0 0 28 147A15 15 0 0 0 43 162Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 162 |
<text x="92" y="147" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">schema-name</text> |
| 163 |
<polygon points="178,147 166,151 166,142" style="fill:rgb(0,0,0)"/> |
| 164 |
<path d="M155,147L172,147" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 165 |
<path d="M193,162A15 15 0 0 0 208 147A15 15 0 0 0 193 132A15 15 0 0 0 178 147A15 15 0 0 0 193 162Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 166 |
<text x="193" y="147" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">.</text> |
| 167 |
<polygon points="244,147 233,151 233,142" style="fill:rgb(0,0,0)"/> |
| 168 |
<path d="M208,147L238,147" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 169 |
<path d="M259,162L351,162A15 15 0 0 0 366 147A15 15 0 0 0 351 132L259,132A15 15 0 0 0 244 147A15 15 0 0 0 259 162Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 170 |
<text x="305" y="147" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">trigger-name</text> |
| 171 |
<polygon points="402,147 391,151 391,142" style="fill:rgb(0,0,0)"/> |
| 172 |
<path d="M366,147L396,147" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 173 |
<path d="M417,162L472,162A15 15 0 0 0 487 147A15 15 0 0 0 472 132L417,132A15 15 0 0 0 402 147A15 15 0 0 0 417 162Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 174 |
<text x="444" y="147" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">BEFORE</text> |
| 175 |
<path d="M417,200L457,200A15 15 0 0 0 472 185A15 15 0 0 0 457 169L417,169A15 15 0 0 0 402 185A15 15 0 0 0 417 200Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 176 |
<text x="437" y="185" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">AFTER</text> |
| 177 |
<path d="M417,238L479,238A15 15 0 0 0 494 222A15 15 0 0 0 479 207L417,207A15 15 0 0 0 402 222A15 15 0 0 0 417 238Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 178 |
<text x="448" y="222" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">INSTEAD</text> |
| 179 |
<polygon points="517,222 505,227 505,218" style="fill:rgb(0,0,0)"/> |
| 180 |
<path d="M494,222L511,222" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 181 |
<path d="M532,238L538,238A15 15 0 0 0 553 222A15 15 0 0 0 538 207L532,207A15 15 0 0 0 517 222A15 15 0 0 0 532 238Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 182 |
<text x="535" y="222" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">OF</text> |
| 183 |
<polygon points="402,185 391,189 391,180" style="fill:rgb(0,0,0)"/> |
| 184 |
<path d="M366,147 L 374,147 Q 381,147 381,162 L 381,170 Q 381,185 389,185 L 396,185" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 185 |
<polygon points="402,222 391,227 391,218" style="fill:rgb(0,0,0)"/> |
| 186 |
<path d="M366,147 L 374,147 Q 381,147 381,162 L 381,207 Q 381,222 389,222 L 396,222" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 187 |
<polygon points="92,177 80,181 80,173" style="fill:rgb(0,0,0)"/> |
| 188 |
<path d="M5,132 L 5,162 Q 5,177 20,177 L 71,177 L 86,177" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 189 |
<path d="M92,177 L 205,177 Q 220,177 220,162 L 220,162 Q 220,147 227,147 L 235,147" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 190 |
<polygon points="193,260 205,256 205,265" style="fill:rgb(0,0,0)"/> |
| 191 |
<path d="M381,207 L 381,245 Q 381,260 366,260 L 214,260 L 199,260" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 192 |
<polygon points="576,222 564,227 564,218" style="fill:rgb(0,0,0)"/> |
| 193 |
<path d="M553,222L570,222" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 194 |
<polygon points="448,260 459,256 459,265" style="fill:rgb(0,0,0)"/> |
| 195 |
<path d="M576,222 L 584,222 Q 591,222 591,237 L 591,245 Q 591,260 576,260 L 469,260 L 454,260" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 196 |
<path d="M448,260L366,260" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 197 |
<polygon points="576,147 564,151 564,142" style="fill:rgb(0,0,0)"/> |
| 198 |
<path d="M487,147L570,147" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 199 |
<path d="M576,147 L 584,147 Q 591,147 591,162 L 591,223 L 591,238" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 200 |
<polygon points="576,185 564,189 564,180" style="fill:rgb(0,0,0)"/> |
| 201 |
<path d="M472,185L570,185" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 202 |
<path d="M576,185 L 584,185 Q 591,185 591,192 L 591,200" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 203 |
<path d="M43,306L96,306A15 15 0 0 0 111 290L111,290A15 15 0 0 0 96 275L43,275A15 15 0 0 0 28 290L28,290A15 15 0 0 0 43 306Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 204 |
<text x="70" y="290" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">DELETE</text> |
| 205 |
<path d="M43,343L92,343A15 15 0 0 0 107 328A15 15 0 0 0 92 313L43,313A15 15 0 0 0 28 328A15 15 0 0 0 43 343Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 206 |
<text x="68" y="328" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">INSERT</text> |
| 207 |
<path d="M43,381L98,381A15 15 0 0 0 113 366A15 15 0 0 0 98 351L43,351A15 15 0 0 0 28 366A15 15 0 0 0 43 381Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 208 |
<text x="70" y="366" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">UPDATE</text> |
| 209 |
<polygon points="28,366 17,370 17,362" style="fill:rgb(0,0,0)"/> |
| 210 |
<path d="M193,260 L 20,260 Q 5,260 5,275 L 5,351 Q 5,366 14,366 L 23,366" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 211 |
<polygon points="28,290 17,295 17,286" style="fill:rgb(0,0,0)"/> |
| 212 |
<path d="M5,275 L 5,283 Q 5,290 14,290 L 23,290" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 213 |
<polygon points="28,328 17,333 17,324" style="fill:rgb(0,0,0)"/> |
| 214 |
<path d="M5,313 L 5,321 Q 5,328 14,328 L 23,328" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 215 |
<path d="M164,411L170,411A15 15 0 0 0 185 396A15 15 0 0 0 170 381L164,381A15 15 0 0 0 149 396A15 15 0 0 0 164 411Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 216 |
<text x="167" y="396" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">OF</text> |
| 217 |
<polygon points="221,396 209,401 209,392" style="fill:rgb(0,0,0)"/> |
| 218 |
<path d="M185,396L215,396" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 219 |
<path d="M236,411L330,411A15 15 0 0 0 345 396A15 15 0 0 0 330 381L236,381A15 15 0 0 0 221 396A15 15 0 0 0 236 411Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 220 |
<text x="283" y="396" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">column-name</text> |
| 221 |
<path d="M283,449L283,449A15 15 0 0 0 298 434A15 15 0 0 0 283 419L283,419A15 15 0 0 0 268 434A15 15 0 0 0 283 449Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 222 |
<text x="283" y="434" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">,</text> |
| 223 |
<polygon points="381,396 369,401 369,392" style="fill:rgb(0,0,0)"/> |
| 224 |
<path d="M345,396L375,396" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 225 |
<polygon points="419,290 408,295 408,286" style="fill:rgb(0,0,0)"/> |
| 226 |
<path d="M381,396 L 388,396 Q 396,396 396,381 L 396,305 Q 396,290 405,290 L 413,290" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 227 |
<path d="M434,306L443,306A15 15 0 0 0 458 290L458,290A15 15 0 0 0 443 275L434,275A15 15 0 0 0 419 290L419,290A15 15 0 0 0 434 306Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 228 |
<text x="439" y="290" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">ON</text> |
| 229 |
<polygon points="481,290 470,295 470,286" style="fill:rgb(0,0,0)"/> |
| 230 |
<path d="M458,290L475,290" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 231 |
<path d="M496,306L572,306A15 15 0 0 0 587 290L587,290A15 15 0 0 0 572 275L496,275A15 15 0 0 0 481 290L481,290A15 15 0 0 0 496 306Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 232 |
<text x="534" y="290" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">table-name</text> |
| 233 |
<path d="M111,290L408,290" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 234 |
<polygon points="381,328 369,333 369,324" style="fill:rgb(0,0,0)"/> |
| 235 |
<path d="M107,328L375,328" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 236 |
<path d="M381,328 L 388,328 Q 396,328 396,321 L 396,313" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 237 |
<polygon points="381,366 369,370 369,362" style="fill:rgb(0,0,0)"/> |
| 238 |
<path d="M113,366L375,366" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 239 |
<path d="M381,366 L 388,366 Q 396,366 396,359 L 396,351" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 240 |
<polygon points="149,396 137,401 137,392" style="fill:rgb(0,0,0)"/> |
| 241 |
<path d="M113,366 L 120,366 Q 128,366 128,381 L 128,381 Q 128,396 135,396 L 143,396" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 242 |
<polygon points="298,434 309,430 309,438" style="fill:rgb(0,0,0)"/> |
| 243 |
<path d="M345,396 L 352,396 Q 360,396 360,411 L 360,419 Q 360,434 345,434 L 319,434 L 304,434" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 244 |
<path d="M268,434 L 213,434 Q 198,434 198,419 L 198,411 Q 198,396 205,396 L 213,396" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 245 |
<path d="M43,525L62,525A15 15 0 0 0 77 510A15 15 0 0 0 62 495L43,495A15 15 0 0 0 28 510A15 15 0 0 0 43 525Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 246 |
<text x="52" y="510" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">FOR</text> |
| 247 |
<polygon points="100,510 88,514 88,505" style="fill:rgb(0,0,0)"/> |
| 248 |
<path d="M77,510L94,510" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 249 |
<path d="M115,525L147,525A15 15 0 0 0 162 510A15 15 0 0 0 147 495L115,495A15 15 0 0 0 100 510A15 15 0 0 0 115 525Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 250 |
<text x="131" y="510" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">EACH</text> |
| 251 |
<polygon points="185,510 174,514 174,505" style="fill:rgb(0,0,0)"/> |
| 252 |
<path d="M162,510L179,510" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 253 |
<path d="M200,525L224,525A15 15 0 0 0 240 510A15 15 0 0 0 224 495L200,495A15 15 0 0 0 185 510A15 15 0 0 0 200 525Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 254 |
<text x="212" y="510" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">ROW</text> |
| 255 |
<polygon points="312,510 300,514 300,505" style="fill:rgb(0,0,0)"/> |
| 256 |
<path d="M240,510L306,510" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 257 |
<path d="M327,525L366,525A15 15 0 0 0 381 510A15 15 0 0 0 366 495L327,495A15 15 0 0 0 312 510A15 15 0 0 0 327 525Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 258 |
<text x="346" y="510" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">WHEN</text> |
| 259 |
<polygon points="404,510 393,514 393,505" style="fill:rgb(0,0,0)"/> |
| 260 |
<path d="M381,510L399,510" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 261 |
<path d="M404,525L454,525L454,495L404,495Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 262 |
<text x="429" y="510" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">expr</text> |
| 263 |
<path d="M43,631L82,631A15 15 0 0 0 97 616A15 15 0 0 0 82 600L43,600A15 15 0 0 0 28 616A15 15 0 0 0 43 631Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 264 |
<text x="63" y="616" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">BEGIN</text> |
| 265 |
<polygon points="169,616 158,620 158,611" style="fill:rgb(0,0,0)"/> |
| 266 |
<path d="M97,616L163,616" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 267 |
<path d="M169,631L282,631L282,600L169,600Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 268 |
<text x="226" y="616" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">update-stmt</text> |
| 269 |
<polygon points="336,616 324,620 324,611" style="fill:rgb(0,0,0)"/> |
| 270 |
<path d="M282,616L330,616" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 271 |
<path d="M351,631A15 15 0 0 0 366 616A15 15 0 0 0 351 600A15 15 0 0 0 336 616A15 15 0 0 0 351 631Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 272 |
<text x="351" y="616" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">;</text> |
| 273 |
<polygon points="402,616 391,620 391,611" style="fill:rgb(0,0,0)"/> |
| 274 |
<path d="M366,616L396,616" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 275 |
<path d="M417,631L438,631A15 15 0 0 0 453 616A15 15 0 0 0 438 600L417,600A15 15 0 0 0 402 616A15 15 0 0 0 417 631Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 276 |
<text x="428" y="616" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">END</text> |
| 277 |
<polygon points="668,616 657,620 657,611" style="fill:rgb(0,0,0)"/> |
| 278 |
<path d="M453,616L662,616" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 279 |
<circle cx="672" cy="616" r="3.6" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 280 |
<path d="M169,668L273,668L273,638L169,638Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 281 |
<text x="221" y="653" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">insert-stmt</text> |
| 282 |
<path d="M169,706L276,706L276,676L169,676Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 283 |
<text x="223" y="691" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">delete-stmt</text> |
| 284 |
<path d="M169,744L273,744L273,714L169,714Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 285 |
<text x="221" y="729" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">select-stmt</text> |
| 286 |
<polygon points="169,729 158,733 158,725" style="fill:rgb(0,0,0)"/> |
| 287 |
<path d="M131,616 L 139,616 Q 146,616 146,631 L 146,714 Q 146,729 155,729 L 163,729" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 288 |
<polygon points="169,653 158,658 158,649" style="fill:rgb(0,0,0)"/> |
| 289 |
<path d="M146,638 L 146,646 Q 146,653 155,653 L 163,653" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 290 |
<polygon points="169,691 158,695 158,687" style="fill:rgb(0,0,0)"/> |
| 291 |
<path d="M146,676 L 146,684 Q 146,691 155,691 L 163,691" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 292 |
<polygon points="298,729 286,733 286,725" style="fill:rgb(0,0,0)"/> |
| 293 |
<path d="M273,729L292,729" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 294 |
<path d="M298,729 L 305,729 Q 313,729 313,714 L 313,631 Q 313,616 319,616 L 324,616" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 295 |
<polygon points="298,653 286,658 286,649" style="fill:rgb(0,0,0)"/> |
| 296 |
<path d="M273,653L292,653" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 297 |
<path d="M298,653 L 305,653 Q 313,653 313,646 L 313,638" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 298 |
<polygon points="298,691 286,695 286,687" style="fill:rgb(0,0,0)"/> |
| 299 |
<path d="M276,691L292,691" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 300 |
<path d="M298,691 L 305,691 Q 313,691 313,684 L 313,676" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 301 |
<polygon points="226,585 237,581 237,590" style="fill:rgb(0,0,0)"/> |
| 302 |
<path d="M366,616 L 374,616 Q 381,616 381,601 L 381,600 Q 381,585 366,585 L 246,585 L 231,585" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 303 |
<polygon points="132,616 120,620 120,611" style="fill:rgb(0,0,0)"/> |
| 304 |
<path d="M226,585 L 124,585 Q 109,585 109,600 L 109,601 Q 109,616 117,616 L 126,616" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 305 |
<polygon points="602,434 597,423 606,423" style="fill:rgb(0,0,0)"/> |
| 306 |
<path d="M587,290 L 594,290 Q 602,290 602,305 L 602,414 L 602,429" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 307 |
<polygon points="226,472 237,468 237,476" style="fill:rgb(0,0,0)"/> |
| 308 |
<path d="M602,434 L 602,457 Q 602,472 587,472 L 246,472 L 231,472" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 309 |
<polygon points="28,616 17,620 17,611" style="fill:rgb(0,0,0)"/> |
| 310 |
<path d="M226,472 L 20,472 Q 5,472 5,487 L 5,601 Q 5,616 14,616 L 23,616" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 311 |
<polygon points="28,510 17,514 17,505" style="fill:rgb(0,0,0)"/> |
| 312 |
<path d="M5,495 L 5,502 Q 5,510 14,510 L 23,510" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 313 |
<polygon points="226,547 237,543 237,552" style="fill:rgb(0,0,0)"/> |
| 314 |
<path d="M454,510 L 461,510 Q 469,510 469,525 L 469,532 Q 469,547 454,547 L 246,547 L 231,547" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 315 |
<path d="M226,547 L 20,547 Q 5,547 5,555 L 5,562" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 316 |
<path d="M240,510 L 247,510 Q 255,510 255,525 L 255,532 Q 255,547 247,547 L 240,547" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 317 |
<path d="M312,510 L 297,510 Q 282,510 282,495 L 282,487 Q 282,472 297,472 L 312,472" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" /> |
| 318 |
</svg> |
| 319 |
</div><br> |
| 320 |
|
| 321 |
Used by: <a href='./sql-stmt.html'>sql-stmt</a><br></br> |
| 322 |
References: <a href='./delete-stmt.html'>delete-stmt</a> <a href='./expr.html'>expr</a> <a href='./insert-stmt.html'>insert-stmt</a> <a href='./select-stmt.html'>select-stmt</a> <a href='./update-stmt.html'>update-stmt</a><br></br> |
| 323 |
See also: <a href='../lang_createtrigger.html'>lang_createtrigger.html</a> |
| 324 |
</div> |
| 325 |
|
| 326 |
|
| 327 |
|