snipt

Ctrl+h for KB shortcuts

SQL

test

1
2
3
4
5
6
7
--Annie Test
CREATE TABLE Test
	(
	id               INT NOT NULL auto_increment,
	title            VARCHAR (60) NULL,
	PRIMARY KEY (id)
	);
https://snipt.net/embed/f24e5ae81eb5a4fce9f0522452f8304f/
/raw/f24e5ae81eb5a4fce9f0522452f8304f/
f24e5ae81eb5a4fce9f0522452f8304f
sql
SQL
8
2019-05-20T07:31:49
True
False
False
/api/public/snipt/36674/
test-115
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1">--Annie Test</span> </span><span id="L-2"><a name="L-2"></a><span class="k">CREATE</span> <span class="k">TABLE</span> <span class="n">Test</span> </span><span id="L-3"><a name="L-3"></a> <span class="p">(</span> </span><span id="L-4"><a name="L-4"></a> <span class="n">id</span> <span class="nb">INT</span> <span class="k">NOT</span> <span class="k">NULL</span> <span class="n">auto_increment</span><span class="p">,</span> </span><span id="L-5"><a name="L-5"></a> <span class="n">title</span> <span class="nb">VARCHAR</span> <span class="p">(</span><span class="mi">60</span><span class="p">)</span> <span class="k">NULL</span><span class="p">,</span> </span><span id="L-6"><a name="L-6"></a> <span class="k">PRIMARY</span> <span class="k">KEY</span> <span class="p">(</span><span class="n">id</span><span class="p">)</span> </span><span id="L-7"><a name="L-7"></a> <span class="p">);</span> </span></pre></div> </td></tr></table>
mysql