db-tutorial/index.html

373 lines
14 KiB
HTML

<!DOCTYPE HTML>
<html lang="zh-hans" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>简介 · db-notes</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.2">
<meta name="author" content="Zhang Peng">
<link rel="stylesheet" href="db-notes/gitbook/style.css">
<link rel="stylesheet" href="db-notes/gitbook/gitbook-plugin-advanced-emoji/emoji-website.css">
<link rel="stylesheet" href="db-notes/gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
<link rel="stylesheet" href="db-notes/gitbook/gitbook-plugin-anchors/plugin.css">
<link rel="stylesheet" href="db-notes/gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
<link rel="stylesheet" href="db-notes/gitbook/gitbook-plugin-search-plus/search.css">
<link rel="stylesheet" href="db-notes/gitbook/gitbook-plugin-splitter/splitter.css">
<link rel="stylesheet" href="db-notes/gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
<link rel="stylesheet" href="db-notes/gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="db-notes/gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="db-notes/gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="db-notes/gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="db-notes/sql/sql-quickstart.html" />
<link rel="prev" href="db-notes/" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="输入并搜索" />
</div>
<nav role="navigation">
<ul class="summary">
<li>
<a href="https://github.com/dunwu/db-notes" target="_blank" class="custom-link">db-notes</a>
</li>
<li class="divider"></li>
<li class="header">简介</li>
<li class="chapter " data-level="1.1" data-path="db-notes/">
<a href="db-notes/">
Introduction
</a>
</li>
<li class="chapter active" data-level="1.2" data-path="./">
<a href="./">
简介
</a>
</li>
<li class="header">sql 教程</li>
<li class="chapter " data-level="2.1" data-path="db-notes/sql/sql-quickstart.html">
<a href="db-notes/sql/sql-quickstart.html">
Sql 快速指南
</a>
</li>
<li class="chapter " data-level="2.2" data-path="db-notes/sql/sql-constraint.html">
<a href="db-notes/sql/sql-constraint.html">
Sql 约束
</a>
</li>
<li class="divider"></li>
<li class="chapter " data-level="3.1" data-path="db-notes/GLOSSARY.md">
<span>
术语
</a>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
本书使用 GitBook 发布
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href="db-notes" >简介</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><span class="title-icon "></span><a href="#db-notes"><b></b>db-notes</a></li><ul><li><span class="title-icon "></span><a href="#&#x5185;&#x5BB9;"><b></b> &#x5185;&#x5BB9;</a></li><li><span class="title-icon "></span><a href="#&#x8BF4;&#x660E;"><b></b> &#x8BF4;&#x660E;</a></li></ul></ul></div><a href="#db-notes" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="db-notes"><a name="db-notes" class="plugin-anchor" href="#db-notes"><i class="fa fa-link" aria-hidden="true"></i></a><a name="db-notes" class="anchor-navigation-ex-anchor" href="#db-notes"><i class="fa fa-link" aria-hidden="true"></i></a>db-notes</h1>
<p>&#x200B;:books: &#x4E2A;&#x4EBA;&#x7684;&#x6570;&#x636E;&#x5E93;&#x5B66;&#x4E60;&#x7B14;&#x8BB0;&#x3002;</p>
<p><strong><a href="https://dunwu.gitbooks.io/db-notes/content/" target="_blank">gitbook &#x7EBF;&#x4E0A;&#x9605;&#x8BFB;</a></strong></p>
<h2 id="&#x5185;&#x5BB9;"><a name="&#x5185;&#x5BB9;" class="plugin-anchor" href="#&#x5185;&#x5BB9;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="&#x5185;&#x5BB9;" class="anchor-navigation-ex-anchor" href="#&#x5185;&#x5BB9;"><i class="fa fa-link" aria-hidden="true"></i></a><img align="absmiddle" alt=":memo:" class="emoji" src="db-notes/gitbook/gitbook-plugin-advanced-emoji/emojis/memo.png" title=":memo:"> &#x5185;&#x5BB9;</h2>
<p>&#x6682;&#x5B9A;&#x8BA1;&#x5212;&#x4E3A;&#xFF1A;&#x5B8C;&#x5584;&#x6240;&#x6709;&#x672C;&#x4EBA;&#x4F7F;&#x7528;&#x8FC7;&#x7684; DB &#x7684;&#x7B14;&#x8BB0;&#xFF1A;</p>
<p><strong>&#x5173;&#x7CFB;&#x578B;&#x6570;&#x636E;&#x5E93;</strong></p>
<ul>
<li>[ ] Mysql</li>
<li>[ ] Oracle</li>
<li>[ ] H2</li>
<li>[ ] Sqlite</li>
</ul>
<p><strong>&#x975E;&#x5173;&#x7CFB;&#x578B;&#x6570;&#x636E;&#x5E93;</strong></p>
<ul>
<li>[ ] MongoDB</li>
<li>[ ] Redis</li>
</ul>
<h2 id="&#x8BF4;&#x660E;"><a name="&#x8BF4;&#x660E;" class="plugin-anchor" href="#&#x8BF4;&#x660E;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="&#x8BF4;&#x660E;" class="anchor-navigation-ex-anchor" href="#&#x8BF4;&#x660E;"><i class="fa fa-link" aria-hidden="true"></i></a><img align="absmiddle" alt=":pushpin:" class="emoji" src="db-notes/gitbook/gitbook-plugin-advanced-emoji/emojis/pushpin.png" title=":pushpin:"> &#x8BF4;&#x660E;</h2>
<p>&#x672C;&#x9879;&#x76EE;&#x7684;&#x6587;&#x6863;&#x6309;&#x7167; gitbook &#x89C4;&#x8303;&#x7F16;&#x5199;&#xFF0C;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x751F;&#x6210;&#x4E00;&#x4E2A; gitbook &#x7535;&#x5B50;&#x4E66;&#x7AD9;&#x70B9;&#x3002;</p>
<p>&#x5982;&#x679C;&#x60F3;&#x4F7F;&#x7528; gitbook &#x7535;&#x5B50;&#x4E66;&#xFF0C;&#x6309;&#x4EE5;&#x4E0B;&#x6B65;&#x9AA4;&#x6267;&#x884C;&#x547D;&#x4EE4;&#x5373;&#x53EF;&#xFF1A;</p>
<pre><code class="lang-bash"><span class="hljs-comment"># 1. &#x5B89;&#x88C5; gitbook-cli</span>
$ npm install -g gitbook-cli
<span class="hljs-comment"># 2. &#x5B89;&#x88C5; gitbook &#x5404;&#x79CD;&#x4F9D;&#x8D56;&#x63D2;&#x4EF6;</span>
$ gitbook install
<span class="hljs-comment"># 3. &#x542F;&#x52A8;&#x672C;&#x5730;&#x7684; gitbook &#x7535;&#x5B50;&#x4E66;&#x7AD9;&#x70B9;</span>
$ gitbook serve
</code></pre>
<p>&#x542F;&#x52A8;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x8BBF;&#x95EE; <a href="http://localhost:4000" target="_blank">http://localhost:4000</a> &#x5373;&#x53EF;&#x770B;&#x5230;&#x7535;&#x5B50;&#x4E66;&#x4E86;&#x3002; </p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; Zhang Peng 2017 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4E0A;&#x6B21;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2017-10-20 09:02:53
</span></footer>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="db-notes/" class="navigation navigation-prev " aria-label="Previous page: Introduction">
<i class="fa fa-angle-left"></i>
</a>
<a href="db-notes/sql/sql-quickstart.html" class="navigation navigation-next " aria-label="Next page: Sql 快速指南">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"简介","level":"1.2","depth":1,"next":{"title":"Sql 快速指南","level":"2.1","depth":1,"path":"sql/sql-quickstart.md","ref":"sql/sql-quickstart.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","advanced-emoji@^0.2.2","anchor-navigation-ex@1.0.10","anchors@^0.7.1","edit-link@^2.0.2","expandable-chapters-small@^0.1.7","github@^2.0.0","search-plus@^0.0.11","simple-page-toc@^0.1.1","splitter@^0.0.8","tbfed-pagefooter@^0.0.1","livereload"],"root":"./docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © Zhang Peng 2017","modify_label":"该文件上次修订时间:","modify_format":"YYYY-MM-DD HH:mm:ss"},"github":{"url":"https://github.com/dunwu/db-notes"},"livereload":{},"simple-page-toc":{"maxDepth":4,"skipFirstH1":true},"splitter":{},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"level1Icon":"fa fa-hand-o-right","level2Icon":"fa fa-hand-o-right","level3Icon":"fa fa-hand-o-right","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"fa fa-hand-o-right","level2Icon":"fa fa-hand-o-right","level3Icon":"fa fa-hand-o-right","showLevelIcon":false},"printLog":false,"showLevel":false,"isRewritePageTitle":false},"expandable-chapters-small":{},"advanced-emoji":{"embedEmojis":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":true,"instapaper":false,"vk":false,"all":["weibo","google","twitter","weibo","instapaper"]},"edit-link":{"label":"编辑此页面","base":"https://github.com/dunwu/db-notes/blob/master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"search-plus":{}},"theme":"default","author":"Zhang Peng","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"db-notes","language":"zh-hans","links":{"sidebar":{"db-notes":"https://github.com/dunwu/db-notes"}},"gitbook":"3.2.2","description":"个人的数据库学习笔记"},"file":{"path":"../README.md","mtime":"2017-10-20T01:02:53.033Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-10-20T03:58:40.107Z"},"basePath":"db-notes","book":{"language":""}});
});
</script>
</div>
<script src="db-notes/gitbook/gitbook.js"></script>
<script src="db-notes/gitbook/theme.js"></script>
<script src="db-notes/gitbook/gitbook-plugin-edit-link/plugin.js"></script>
<script src="db-notes/gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
<script src="db-notes/gitbook/gitbook-plugin-github/plugin.js"></script>
<script src="db-notes/gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
<script src="db-notes/gitbook/gitbook-plugin-search-plus/search.js"></script>
<script src="db-notes/gitbook/gitbook-plugin-splitter/splitter.js"></script>
<script src="db-notes/gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="db-notes/gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="db-notes/gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>