摘要:
复合主键: create table index_test ( a int not null, b int not null, c int not null, d int null, primary key (c, a, b) ); 即一个表的主键同时由多个字段共同组成,复合主键索引见【Mysql】 阅读全文
摘要:
复合主键在where中使用查询的时候到底走不走索引呢?例如下表: create table index_test ( a int not null, b int not null, c int not null, d int null, primary key (a, b, c) ); 当执行以下S 阅读全文
摘要:
// 测试代码 public static void main(String[] args) { Integer a = 1; Integer b = 2; Integer c = 3; Integer d = 3; Integer e = 128; Integer f = 128; Long g 阅读全文