Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hel-developer-guide
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spencer Chang
hel-developer-guide
Commits
7b697ba4
Commit
7b697ba4
authored
Aug 04, 2017
by
11277
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 头行保存.md
parent
619d9fcb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
头行保存.md
前端组件/头行保存.md
+8
-11
No files found.
前端组件/头行保存.md
View file @
7b697ba4
...
@@ -5,11 +5,7 @@
...
@@ -5,11 +5,7 @@
头行保存在实用中经常用到,头行保存指的是头表和行表(一对多)的数据同时插入,如中途失败则这次事务不进行提交。
头行保存在实用中经常用到,头行保存指的是头表和行表(一对多)的数据同时插入,如中途失败则这次事务不进行提交。
假设我们有两张表
假设我们有两张表
<style>
table th:first-of-type {
width: 100px;
}
</style>
**hls_person(头表)**
**hls_person(头表)**
...
@@ -20,12 +16,13 @@ table th:first-of-type {
...
@@ -20,12 +16,13 @@ table th:first-of-type {
*hls_hobby(行表*
*
*hls_hobby(行表*
*
|hid| pid |hobby| cause|
|hid|pid|hobby |cause|
|:--------: | :-----:|:-----: |:-----:|
|:---: | :---: | :---:|:---:|
|1|1|篮球| 因为篮球好玩|
|1| 张三 | 篮球 |因为篮球好玩|
|2|1|游泳| 因为游泳好玩|
|2| 李四| 游泳 |因为篮球好玩|
|3|1|动画片|最爱看大头儿子|
|3|1|动画片|因为动画片好看|
|4|2|画画|梵高的画也不过如此|
|4|2|画画|因为画画好玩|
需求是新增一个人的信息以及它的爱好(向hls_person和hls_hobby表新增记录)
需求是新增一个人的信息以及它的爱好(向hls_person和hls_hobby表新增记录)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment