Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

SQL

contact.db

1
2
3
4
5
6
7
8
CREATE TABLE contact
(
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
lastName VARCHAR(50) NOT NULL,
firstName VARCHAR(50) NOT NULL,
phoneNumber CHAR(15) NOT NULL
);
CREATE INDEX "id" ON "contact"("id");
https://snipt.net/embed/7a97f89aacbcb1eb0e2088ab8ccc4e6b/
https://snipt.net/raw/7a97f89aacbcb1eb0e2088ab8ccc4e6b/
7a97f89aacbcb1eb0e2088ab8ccc4e6b
sql
SQL
8
2016-11-02T16:17:24
True
False
False
/api/public/snipt/16297/
contactdb
<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> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="k">CREATE</span> <span class="k">TABLE</span> <span class="n">contact</span> </span><span id="L-2"><a name="L-2"></a><span class="p">(</span> </span><span id="L-3"><a name="L-3"></a><span class="n">id</span> <span class="nb">INTEGER</span> <span class="k">NOT</span> <span class="k">NULL</span> <span class="k">PRIMARY</span> <span class="k">KEY</span> <span class="n">AUTOINCREMENT</span><span class="p">,</span> </span><span id="L-4"><a name="L-4"></a><span class="n">lastName</span> <span class="nb">VARCHAR</span><span class="p">(</span><span class="mi">50</span><span class="p">)</span> <span class="k">NOT</span> <span class="k">NULL</span><span class="p">,</span> </span><span id="L-5"><a name="L-5"></a><span class="n">firstName</span> <span class="nb">VARCHAR</span><span class="p">(</span><span class="mi">50</span><span class="p">)</span> <span class="k">NOT</span> <span class="k">NULL</span><span class="p">,</span> </span><span id="L-6"><a name="L-6"></a><span class="n">phoneNumber</span> <span class="nb">CHAR</span><span class="p">(</span><span class="mi">15</span><span class="p">)</span> <span class="k">NOT</span> <span class="k">NULL</span> </span><span id="L-7"><a name="L-7"></a><span class="p">);</span> </span><span id="L-8"><a name="L-8"></a><span class="k">CREATE</span> <span class="k">INDEX</span> <span class="ss">&quot;id&quot;</span> <span class="k">ON</span> <span class="ss">&quot;contact&quot;</span><span class="p">(</span><span class="ss">&quot;id&quot;</span><span class="p">);</span> </span></pre></div> </td></tr></table>
php-gtk

SQL

sqlite-example

1
2
3
4
5
CREATE TABLE person(
id INT NOT NULL,
lastName VARCHAR(50) NOT NULL,
firstName VARCHAR(50) NOT NULL
)
https://snipt.net/embed/a8702faa0976f9bbcba2100f54af396d/
https://snipt.net/raw/a8702faa0976f9bbcba2100f54af396d/
a8702faa0976f9bbcba2100f54af396d
sql
SQL
5
2016-12-06T16:46:16
True
False
False
/api/public/snipt/16233/
sqlite-example-1
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="k">CREATE</span> <span class="k">TABLE</span> <span class="n">person</span><span class="p">(</span> </span><span id="L-2"><a name="L-2"></a><span class="n">id</span> <span class="nb">INT</span> <span class="k">NOT</span> <span class="k">NULL</span><span class="p">,</span> </span><span id="L-3"><a name="L-3"></a><span class="n">lastName</span> <span class="nb">VARCHAR</span><span class="p">(</span><span class="mi">50</span><span class="p">)</span> <span class="k">NOT</span> <span class="k">NULL</span><span class="p">,</span> </span><span id="L-4"><a name="L-4"></a><span class="n">firstName</span> <span class="nb">VARCHAR</span><span class="p">(</span><span class="mi">50</span><span class="p">)</span> <span class="k">NOT</span> <span class="k">NULL</span> </span><span id="L-5"><a name="L-5"></a><span class="p">)</span> </span></pre></div> </td></tr></table>
php-gtk
Copyrighted, illegal, or inappropriate content? Email [email protected].