René's URL Explorer Experiment


Title: GitHub - Highflyer/MySQL-Design-Specification: MySQL 数据库设计规范

Open Graph Title: GitHub - Highflyer/MySQL-Design-Specification: MySQL 数据库设计规范

X Title: GitHub - Highflyer/MySQL-Design-Specification: MySQL 数据库设计规范

Description: MySQL 数据库设计规范. Contribute to Highflyer/MySQL-Design-Specification development by creating an account on GitHub.

Open Graph Description: MySQL 数据库设计规范. Contribute to Highflyer/MySQL-Design-Specification development by creating an account on GitHub.

X Description: MySQL 数据库设计规范. Contribute to Highflyer/MySQL-Design-Specification development by creating an account on GitHub.

Opengraph URL: https://github.com/Highflyer/MySQL-Design-Specification

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:4acb2f37-333c-e949-9354-1776ea4be214
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id89C2:20FD81:1643283:1C9C93B:697537CC
html-safe-nonced54ef8b832ebcef007a94add707b2c505b2333fa7cb50c74a907886dbbc76669
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUMyOjIwRkQ4MToxNjQzMjgzOjFDOUM5M0I6Njk3NTM3Q0MiLCJ2aXNpdG9yX2lkIjoiNDg3OTQ5NDgzNjE3MzIyMzg4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac41b4683a0341a69d1901c92caa8c04456d264439666859f3cd8a3ecd13abe7a8
hovercard-subject-tagrepository:168679288
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/Highflyer/MySQL-Design-Specification
twitter:imagehttps://opengraph.githubassets.com/424bfc4ac32af28dcd66b4ef12a59b36cd9c853f1fc9e61c84a0fc906ee9ba93/Highflyer/MySQL-Design-Specification
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/424bfc4ac32af28dcd66b4ef12a59b36cd9c853f1fc9e61c84a0fc906ee9ba93/Highflyer/MySQL-Design-Specification
og:image:altMySQL 数据库设计规范. Contribute to Highflyer/MySQL-Design-Specification development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
go-importgithub.com/Highflyer/MySQL-Design-Specification git https://github.com/Highflyer/MySQL-Design-Specification.git
octolytics-dimension-user_id614030
octolytics-dimension-user_loginHighflyer
octolytics-dimension-repository_id168679288
octolytics-dimension-repository_nwoHighflyer/MySQL-Design-Specification
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id168679288
octolytics-dimension-repository_network_root_nwoHighflyer/MySQL-Design-Specification
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FHighflyer%2FMySQL-Design-Specification
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FHighflyer%2FMySQL-Design-Specification
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=Highflyer%2FMySQL-Design-Specification
Reloadhttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification
Reloadhttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification
Reloadhttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification
Highflyer https://patch-diff.githubusercontent.com/Highflyer
MySQL-Design-Specificationhttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FHighflyer%2FMySQL-Design-Specification
Fork 45 https://patch-diff.githubusercontent.com/login?return_to=%2FHighflyer%2FMySQL-Design-Specification
Star 127 https://patch-diff.githubusercontent.com/login?return_to=%2FHighflyer%2FMySQL-Design-Specification
127 stars https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/stargazers
45 forks https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/forks
Branches https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/branches
Tags https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/tags
Activity https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/activity
Star https://patch-diff.githubusercontent.com/login?return_to=%2FHighflyer%2FMySQL-Design-Specification
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FHighflyer%2FMySQL-Design-Specification
Code https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification
Issues 0 https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/issues
Pull requests 0 https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/pulls
Actions https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/actions
Projects 0 https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/projects
Security 0 https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/security
Insights https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/pulse
Code https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification
Issues https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/issues
Pull requests https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/pulls
Actions https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/actions
Projects https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/projects
Security https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/security
Insights https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/pulse
Brancheshttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/branches
Tagshttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/tags
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/branches
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/tags
15 Commitshttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/commits/master/
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/commits/master/
README.mdhttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/blob/master/README.md
README.mdhttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/blob/master/README.md
READMEhttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#mysql-数据库设计规范
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#目录
1. 规范背景与目的https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#1-%E8%A7%84%E8%8C%83%E8%83%8C%E6%99%AF%E4%B8%8E%E7%9B%AE%E7%9A%84
2. 设计规范https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#2-%E8%AE%BE%E8%AE%A1%E8%A7%84%E8%8C%83
2.1 数据库设计https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#21-%E6%95%B0%E6%8D%AE%E5%BA%93%E8%AE%BE%E8%AE%A1
2.1.1 通用命名约定https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#211-%E9%80%9A%E7%94%A8%E5%91%BD%E5%90%8D%E7%BA%A6%E5%AE%9A
2.1.2 库https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#212-%E5%BA%93
2.1.3 表https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#213-%E8%A1%A8
2.1.4 字段名https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#214-%E5%AD%97%E6%AE%B5%E5%90%8D
2.1.5 字段数据类型优化https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#215-%E5%AD%97%E6%AE%B5%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B%E4%BC%98%E5%8C%96
2.1.6 索引设计https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#216-%E7%B4%A2%E5%BC%95%E8%AE%BE%E8%AE%A1
2.1.7 分库分表、分区表https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#217-%E5%88%86%E5%BA%93%E5%88%86%E8%A1%A8%E3%80%81%E5%88%86%E5%8C%BA%E8%A1%A8
2.1.8 字符集https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#218-%E5%AD%97%E7%AC%A6%E9%9B%86
2.1.9 程序层 DAO 设计建议https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#219-%E7%A8%8B%E5%BA%8F%E5%B1%82-DAO-%E8%AE%BE%E8%AE%A1%E5%BB%BA%E8%AE%AE
2.1.10 一个规范的建表语句示例https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#2110-%E4%B8%80%E4%B8%AA%E8%A7%84%E8%8C%83%E7%9A%84%E5%BB%BA%E8%A1%A8%E8%AF%AD%E5%8F%A5%E7%A4%BA%E4%BE%8B
2.2 SQL 编写https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#22-SQL-%E7%BC%96%E5%86%99
2.2.1 DML 语句https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#221-DML-%E8%AF%AD%E5%8F%A5
2.2.2 多表连接https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#222-%E5%A4%9A%E8%A1%A8%E8%BF%9E%E6%8E%A5
2.2.3 事务https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#223-%E4%BA%8B%E5%8A%A1
2.2.4 排序和分组https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#224-%E6%8E%92%E5%BA%8F%E5%92%8C%E5%88%86%E7%BB%84
2.2.5 线上禁止使用的 SQL 语句https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#225-%E7%BA%BF%E4%B8%8A%E7%A6%81%E6%AD%A2%E4%BD%BF%E7%94%A8%E7%9A%84-SQL-%E8%AF%AD%E5%8F%A5
https://camo.githubusercontent.com/2caed363d1463f36083e947633e8fc07d562cbeaee7ce25038c5f354ae43ea00/68747470733a2f2f616e616e646172616a70616e6465792e66696c65732e776f726470726573732e636f6d2f323031352f30352f6d7973716c5f776f726b62656e63685f76697375616c5f64657369676e5f77696e646f77732e6769663f773d36333626683d343737
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#1-规范背景与目的
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#2-设计规范
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#21-数据库设计
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#211-一般命名规则
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#212-库
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#213-表
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#214-字段
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#215-字段数据类型优化
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#216-索引设计
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#217-分库分表分区表
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#218-字符集
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#219-程序层-dao-设计建议
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#2110-一个规范的建表语句示例
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#22-sql-编写
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#221-dml-语句
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#222-多表连接
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#223-事务
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#224-排序和分组
https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#225-线上禁止使用的-sql-语句
⬆ 返回目录https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#mysql-%E6%95%B0%E6%8D%AE%E5%BA%93%E8%AE%BE%E8%AE%A1%E8%A7%84%E8%8C%83
Readme https://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification#readme-ov-file
Please reload this pagehttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification
Activityhttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/activity
127 starshttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/stargazers
2 watchinghttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/watchers
45 forkshttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/forks
Report repository https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FHighflyer%2FMySQL-Design-Specification&report=Highflyer+%28user%29
Releaseshttps://patch-diff.githubusercontent.com/Highflyer/MySQL-Design-Specification/releases
Packages 0https://patch-diff.githubusercontent.com/users/Highflyer/packages?repo_name=MySQL-Design-Specification
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.