File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ To make searches faster on fields other than the primary key or a foreign key, y
35
35
add a secondary index explicitly.
36
36
37
37
Regular indexes are declared as ` index(attr1, ..., attrN) ` on a separate line anywhere in
38
- the table declration (below the primary key divide).
38
+ the table declaration (below the primary key divide).
39
39
40
40
Indexes can be declared with unique constraint as ` unique index (attr1, ..., attrN) ` .
41
41
@@ -62,7 +62,7 @@ Let’s now imagine that rats in a lab are identified by the combination of `lab
62
62
@schema
63
63
class Rat (dj .Manual ):
64
64
definition = """
65
- lab_name : char(16)
65
+ lab_name : char(16)
66
66
rat_id : int unsigned # lab-specific ID
67
67
---
68
68
date_of_birth = null : date
@@ -86,7 +86,7 @@ To speed up searches by the `rat_id` and `date_of_birth`, we can explicit indexe
86
86
@schema
87
87
class Rat2 (dj .Manual ):
88
88
definition = """
89
- lab_name : char(16)
89
+ lab_name : char(16)
90
90
rat_id : int unsigned # lab-specific ID
91
91
---
92
92
date_of_birth = null : date
You can’t perform that action at this time.
0 commit comments