Skip to content

Commit 3132d51

Browse files
authored
Update guide-sql.asciidoc
1 parent 65b785e commit 3132d51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

documentation/guide-sql.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ However, when you have the freedom of choice and a modern case-sensitive databas
1919
* Define columns and constraints inline in the statement to create the table
2020
* Indent column types so they all start in the same text column
2121
* Constraints should be named explicitly (to get a reasonable hint error messages) with:
22-
** `+PK_{table}+` for primary key (name optional here as PK constraint are fundamental)
23-
** `+FK_{table}_{property}+` for foreign keys (`+{table}+` and `+{property}+` are both on the source where the foreign key is defined)
24-
** `+UC_{table}_{property}[_{propertyN}]*+` for unique constraints
25-
** `+CK_{table}_{check}+` for check constraints (`+{check}+` describes the check, if it is defined on a single property it should start with the property).
22+
** `PK_«table»` for primary key (name optional here as PK constraint are fundamental)
23+
** `FK_«table»_«property»` for foreign keys (`«table»` and `«property»` are both on the source where the foreign key is defined)
24+
** `+UC_«table»_«property»[_«propertyN»]*+` for unique constraints
25+
** `CK_«table»_«check»` for check constraints (`«check»` describes the check, if it is defined on a single property it should start with the property).
2626
* Old RDBMS had hard limitations for names (e.g. 30 characters). Please note that recent databases have overcome this very low length limitations. However, keep your names short but precise and try to define common abbreviations in your project for according (business) terms. Especially do not just truncate the names at the limit.
2727
* If possible add comments on table and columns to help DBAs understanding your schema. This is also honored by many tools (not only DBA-tools).
2828

0 commit comments

Comments
 (0)