首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • Constraints and Triggers

    Foreign-key, or referential-integrity. Value-based constraints. relation> (<attributes>) Referenced attributes must be declared PRIMARY KEY or UNIQUE Enforcing Foreign-Key Constraints If there is a foreign-key constraint from relation R to relation S, two violations are (动作,也就是触发器被触发后需要执行的SQL语句) Preliminary Example: A Trigger Instead of using a foreign-key constraint

    15700编辑于 2025-12-23
  • 来自专栏Hongten

    Hibernate 中继承映射之三 每一个类一个表

    <joined-subclass name="com.b510.examples.PostDelivery" table="post_mail">         <key column="id" foreign-key joined-subclass name="com.b510.examples.ExpressDelivery" table="express_mail">         <key column="id" foreign-key

    54620发布于 2018-09-18
  • 来自专栏大数据学习笔记

    Ambari postgres数据库操作

    pk_users" PRIMARY KEY, btree (user_id) "unq_users_0" UNIQUE CONSTRAINT, btree (user_name, user_type) Foreign-key | character varying(32) | not null Indexes: "pk_host_version" PRIMARY KEY, btree (id) Foreign-key

    1K20编辑于 2022-05-06
  • 来自专栏有脑子的搬砖工

    注解方式实现级联

    -- name:当前类的属性名 column:从表中的外键名 foreign-key:主表中的被参照字段 property-ref:主表中被参照字段的属性名 <set name="cities" cascade="all" lazy="true" inverse="true"> <key column="provincecode" foreign-key

    85520发布于 2019-01-17
  • 来自专栏腾讯数据库技术

    原创|这个死锁你会解吗?

    In this case, gap locking is disabled for searches and index scans and is used only for foreign-key constraint 文档中说的很清楚,当事务的隔离级别设置为RC时,普通的searches和index scan是不会产生Gap锁的,但是foreign-key约束检查和唯一键冲突检查仍然有可能会产生Gap锁。

    1.2K30编辑于 2022-06-08
  • 来自专栏后端技术

    【官方文档】mysql gap lock next-key lock

    Under these circumstances, gap locking is disabled for searches and index scans and is used only for foreign-key

    4.7K51发布于 2019-06-17
  • 来自专栏后台技术汇

    Mysql刨根:由Insert与uniqueKey的竞争引发死锁

    In this case, gap locking is disabled for searches and index scans and is used only for foreign-key constraint

    945147编辑于 2023-10-14
  • 来自专栏架构师之路

    MySQL,InnoDB究竟如何巧妙实现,4种事务的隔离级别(第9讲,超硬核)

    加锁的select, update, delete等语句,除了在外键约束检查(foreign-key constraint checking)以及重复键检查(duplicate-key checking

    26210编辑于 2026-01-14
  • 来自专栏ByConity

    StarRocks 物化视图2 - 查询优化

    OptExpression mvExpression) { // short circuit for tables without foreign-key

    51010编辑于 2025-09-15
  • 来自专栏后台技术汇

    记录一次Mysql死锁事件(由Insert与uniqueKey导致)

    In this case, gap locking is disabled for searches and index scans and is used only for foreign-key constraint

    1.1K20编辑于 2023-09-08
  • 来自专栏博客园迁移

    几种事务的隔离级别,InnoDB如何实现?

    四,读提交(Read Committed, RC) 这是互联网最常用的隔离级别,在RC下: (1)普通读是快照读; (2)加锁的select, update, delete等语句,除了在外键约束检查(foreign-key

    1K10发布于 2018-10-10
  • 来自专栏芋道源码1024

    从 MySQL 物理外键开始的思考

    img First of all,什么是物理外键,好吧虽然基础,但是我们不能跑偏,所以啰嗦的虫子还是喜欢把概念链接给贴上,维基百科更详细,不过这个逼就不装了,留给你们吧 Foreign-Key(w3school

    4.6K20发布于 2019-10-29
  • 来自专栏阿丸笔记

    MySQL死锁排查,原来我一直没懂。。。

    官方文档后面还有一句: In this case, gap locking is disabled for searches and index scans and is used only for foreign-key

    1.5K10编辑于 2024-04-23
  • 来自专栏沃趣科技

    RR与RC隔离级别下MySQL不同的加锁解锁方式

    如果设置为1,会禁用gap锁,但对于外键冲突检测(foreign-key constraint checking)或者重复键检测(duplicate-key checking)还是会用到gap锁。  

    2.8K50发布于 2018-05-15
  • 来自专栏码匠的流水账

    聊聊jpa的batch操作的实现

    AbstractFlushingEventListener.java /** * Execute all SQL (and second-level cache updates) in a special order so that foreign-key

    1.5K10发布于 2018-09-17
  • 来自专栏全栈程序员必看

    [精选]详细介绍MySQL中常见的锁

    Under these circumstances, gap locking is disabled for searches and index scans and is used only for foreign-key

    61410编辑于 2022-07-19
  • 来自专栏码农编程进阶笔记

    [精选]详细介绍MySQL中常见的锁

    Under these circumstances, gap locking is disabled for searches and index scans and is used only for foreign-key

    66040发布于 2021-07-20
  • 来自专栏半旧的技术栈

    【数据库】02——关系模型是什么东东

    department(dept_Id,dept_name, building, budget) 外码约束(foreign-key constarint)表示,在任何数据库实例中,r1的每个元组对A的取值必须也是

    1.1K20编辑于 2022-10-26
  • 来自专栏PingCAP的专栏

    带着问题读 TiDB 源码:Power BI Desktop 以 MySQL 驱动连接 TiDB 报错

    One or more rows contain values violating non-null, unique, or foreign-key constraints.'

    1K30编辑于 2021-12-02
  • 来自专栏Zabbix中国官方

    如何用pgloader将Zabbix的MySQL数据库迁移到PostgreSQL数据库?

    Foreign-key constraints: "c_items_1" FOREIGN KEY (hostid) REFERENCES hosts(hostid) ON DELETE CASCADE

    4.7K20编辑于 2023-03-02
领券