
sql
文章平均质量分 69
iteye_13384
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SQL for update
1 select * from TTable1 for update 锁定表的所有行,只能读不能写 2 select * from TTable1 where pkid = 1 for update 只锁定pkid=1的行 3 select * from Table1 a join Table2 b on a.pkid=b.pkid for update 锁定两个表的所有记录 4 select *...原创 2014-06-16 17:36:11 · 145 阅读 · 0 评论 -
sql(join中on与where区别)
原文地址:http://zzstudy.offcn.com/archives/2146 left join :左连接,返回左表中所有的记录以及右表中连接字段相等的记录。 right join :右连接,返回右表中所有的记录以及左表中连接字段相等的记录。 inner join: 内连接,又叫等值连接,只返回两个表中连接字段相等的行。 full join:外连接,返回两个表中的行:le...原创 2014-08-17 23:44:13 · 97 阅读 · 0 评论