Naming standards for SQLite
Naming Conventions for SQLite Each database, table, column, index, trigger, or view has a name by which it is identified and almost always the name is supplied by the developer.The rules governing how a valid identifier is formed in SQLite are set out in the next few sections. Valid Characters An identifier name must begin with a letter or the underscore character, which may be followed by a number of alphanumeric characters or underscores. No other characters may be present. These identifier names are valid : mytable my_field xyz123 a However, the following are not valid identifiers : my table my-field 123xyz Name Length SQLite does not have a fixed upper limit on the length of an identifier name, so any name that you find manageable to work with is suitable. Reserved Keywords Care must be taken when using SQLite keywords as identifier names. As a ...

Nhận xét
Đăng nhận xét