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
3535add a secondary index explicitly.
3636
3737Regular 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).
3939
4040Indexes can be declared with unique constraint as ` unique index (attr1, ..., attrN) ` .
4141
@@ -62,7 +62,7 @@ Let’s now imagine that rats in a lab are identified by the combination of `lab
6262@schema 
6363class  Rat (dj .Manual ):
6464    definition =  """ 
65-     lab_name : char(16)   
65+     lab_name : char(16) 
6666    rat_id : int unsigned # lab-specific ID 
6767    --- 
6868    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
8686@schema 
8787class  Rat2 (dj .Manual ):
8888    definition =  """ 
89-     lab_name : char(16)   
89+     lab_name : char(16) 
9090    rat_id : int unsigned # lab-specific ID 
9191    --- 
9292    date_of_birth = null : date 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments