Difference between revisions of "Table llx c regions"
Jump to navigation
Jump to search
m (→Table) |
|||
(6 intermediate revisions by 4 users not shown) | |||
Line 12: | Line 12: | ||
= Structure = | = Structure = | ||
− | {| align="left" width="100%" border="0 | + | == Table == |
+ | {| align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox" | ||
|style="background-color: #e9e9ef"| <b>Field</b> | |style="background-color: #e9e9ef"| <b>Field</b> | ||
|style="background-color: #e9e9ef"| <b>Type</b> | |style="background-color: #e9e9ef"| <b>Type</b> | ||
Line 24: | Line 25: | ||
| rowid | | rowid | ||
| int(11) | | int(11) | ||
− | | | + | | NO |
| PRI | | PRI | ||
− | | | + | | |
| auto_increment | | auto_increment | ||
| technical index | | technical index | ||
Line 32: | Line 33: | ||
| code_region | | code_region | ||
| int(11) | | int(11) | ||
+ | | NO | ||
| | | | ||
| | | | ||
| | | | ||
− | + | | code of region: note this must be a numeric code unique to the entire table/all countries, not just to one country. | |
− | | code of region | ||
|- | |- | ||
| fk_pays | | fk_pays | ||
| int(11) | | int(11) | ||
− | | | + | | NO |
+ | | MUL | ||
| | | | ||
− | |||
| | | | ||
| ID of related country ([[Table llx_c_pays|llx_c_pays]]->rowid) | | ID of related country ([[Table llx_c_pays|llx_c_pays]]->rowid) | ||
Line 52: | Line 53: | ||
| NULL | | NULL | ||
| | | | ||
− | | Postal Code of | + | | Postal Code of area or region |
|- | |- | ||
| tncc | | tncc | ||
Line 72: | Line 73: | ||
| active | | active | ||
| tinyint(4) | | tinyint(4) | ||
− | | | + | | NO |
| | | | ||
| 1 | | 1 | ||
| | | | ||
| Is the region active? | | Is the region active? | ||
− | |} | + | |} |
+ | |||
+ | == Keys == | ||
+ | {| align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox" | ||
+ | |style="background-color: #e9e9ef"| <b>Key</b> | ||
+ | |style="background-color: #e9e9ef"| <b>Type</b> | ||
+ | |style="background-color: #e9e9ef"| <b>Fields</b> | ||
+ | |- | ||
+ | | PRIMARY | ||
+ | | PRIMARY | ||
+ | | id | ||
+ | |- | ||
+ | | code_region | ||
+ | | UNIQUE | ||
+ | | code_region | ||
+ | |- | ||
+ | | idx_c_regions_fk_pays | ||
+ | | MULTIPLE | ||
+ | | fk_pays | ||
+ | |} |
Latest revision as of 16:51, 24 July 2018
The documentation related to other tables is available on the page: Table SQL
La documentation relative aux autres tables est disponible sur la page: Table SQL
La documentación relativa a otras tablas se encuentra disponible en la página: Table SQL
Eine Dokumentation zu weiteren Tabellen ist auf dieser Seite verfügbar: Table SQL
与其他表相关的文档请参阅:Table SQL
Content/Contenu/Contenido
Contains a list of regions for some countries.
Contient une liste des regions proposés pour certains pays.
Contiene la lista de regiones de varios paises.
Structure
Table
Field | Type | Null | Key | Default | Extra | Description |
rowid | int(11) | NO | PRI | auto_increment | technical index | |
code_region | int(11) | NO | code of region: note this must be a numeric code unique to the entire table/all countries, not just to one country. | |||
fk_pays | int(11) | NO | MUL | ID of related country (llx_c_pays->rowid) | ||
cheflieu | varchar(7) | YES | NULL | Postal Code of area or region | ||
tncc | int(11) | YES | NULL | ID of ncc | ||
nom | varchar(50) | YES | NULL | Name of region | ||
active | tinyint(4) | NO | 1 | Is the region active? |
Keys
Key | Type | Fields |
PRIMARY | PRIMARY | id |
code_region | UNIQUE | code_region |
idx_c_regions_fk_pays | MULTIPLE | fk_pays |