mirror of https://github.com/dunwu/db-tutorial.git
373 lines
14 KiB
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="#内容"><b></b> 内容</a></li><li><span class="title-icon "></span><a href="#说明"><b></b> 说明</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>​:books: 个人的数据库学习笔记。</p>
|
|
<p><strong><a href="https://dunwu.gitbooks.io/db-notes/content/" target="_blank">gitbook 线上阅读</a></strong></p>
|
|
<h2 id="内容"><a name="内容" class="plugin-anchor" href="#内容"><i class="fa fa-link" aria-hidden="true"></i></a><a name="内容" class="anchor-navigation-ex-anchor" href="#内容"><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:"> 内容</h2>
|
|
<p>暂定计划为:完善所有本人使用过的 DB 的笔记:</p>
|
|
<p><strong>关系型数据库</strong></p>
|
|
<ul>
|
|
<li>[ ] Mysql</li>
|
|
<li>[ ] Oracle</li>
|
|
<li>[ ] H2</li>
|
|
<li>[ ] Sqlite</li>
|
|
</ul>
|
|
<p><strong>非关系型数据库</strong></p>
|
|
<ul>
|
|
<li>[ ] MongoDB</li>
|
|
<li>[ ] Redis</li>
|
|
</ul>
|
|
<h2 id="说明"><a name="说明" class="plugin-anchor" href="#说明"><i class="fa fa-link" aria-hidden="true"></i></a><a name="说明" class="anchor-navigation-ex-anchor" href="#说明"><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:"> 说明</h2>
|
|
<p>本项目的文档按照 gitbook 规范编写,可以直接生成一个 gitbook 电子书站点。</p>
|
|
<p>如果想使用 gitbook 电子书,按以下步骤执行命令即可:</p>
|
|
<pre><code class="lang-bash"><span class="hljs-comment"># 1. 安装 gitbook-cli</span>
|
|
$ npm install -g gitbook-cli
|
|
<span class="hljs-comment"># 2. 安装 gitbook 各种依赖插件</span>
|
|
$ gitbook install
|
|
<span class="hljs-comment"># 3. 启动本地的 gitbook 电子书站点</span>
|
|
$ gitbook serve
|
|
</code></pre>
|
|
<p>启动成功后,访问 <a href="http://localhost:4000" target="_blank">http://localhost:4000</a> 即可看到电子书了。 </p>
|
|
<footer class="page-footer"><span class="copyright">Copyright © Zhang Peng 2017 all right reserved,powered by Gitbook</span><span class="footer-modification">该文件上次修订时间:
|
|
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>
|
|
|