Small. Fast. Reliable.
Choose any three.

SQLite Requirement Matrix Details
lang_attach.html

Index Summary Markup Original


R-18359-12915-45373-49143-09400-22918-07690-23795 tcl slt th3 src

Canonical usage: syntax/attach-stmt.html

/* IMP: R-18359-12915 */
# EVIDENCE-OF: R-18359-12915 -- syntax diagram attach-stmt

R-05949-14992-08035-18700-31063-00582-56557-23299 tcl slt th3 src

Canonical usage: syntax/expr.html

/* IMP: R-05949-14992 */
# EVIDENCE-OF: R-05949-14992 -- syntax diagram expr

R-40210-12599-36231-03864-46176-41928-03203-14839 tcl slt th3 src

Canonical usage: syntax/filter-clause.html

/* IMP: R-40210-12599 */
# EVIDENCE-OF: R-40210-12599 -- syntax diagram filter-clause

R-36911-54969-15236-22853-38940-32913-12354-42363 tcl slt th3 src

Canonical usage: syntax/literal-value.html

/* IMP: R-36911-54969 */
# EVIDENCE-OF: R-36911-54969 -- syntax diagram literal-value

R-39106-18215-63620-21950-01426-37390-34436-15307 tcl slt th3 src

Canonical usage: syntax/over-clause.html

/* IMP: R-39106-18215 */
# EVIDENCE-OF: R-39106-18215 -- syntax diagram over-clause

R-43427-44402-29451-17649-47289-60254-55729-32554 tcl slt th3 src

Canonical usage: syntax/frame-spec.html

/* IMP: R-43427-44402 */
# EVIDENCE-OF: R-43427-44402 -- syntax diagram frame-spec

R-27998-48590-15759-55327-24057-45544-61498-20485 tcl slt th3 src

Canonical usage: syntax/ordering-term.html

/* IMP: R-27998-48590 */
# EVIDENCE-OF: R-27998-48590 -- syntax diagram ordering-term

R-11045-52870-41853-22612-28711-29067-44165-34250 tcl slt th3 src

Canonical usage: syntax/raise-function.html

/* IMP: R-11045-52870 */
# EVIDENCE-OF: R-11045-52870 -- syntax diagram raise-function

R-07822-20600-60008-25390-21808-35959-11282-32675 tcl slt th3 src

Canonical usage: syntax/select-stmt.html

/* IMP: R-07822-20600 */
# EVIDENCE-OF: R-07822-20600 -- syntax diagram select-stmt

R-48339-53472-43967-43694-30651-22239-39991-26499 tcl slt th3 src

Canonical usage: syntax/common-table-expression.html

/* IMP: R-48339-53472 */
# EVIDENCE-OF: R-48339-53472 -- syntax diagram common-table-expression

R-34484-27817-31904-59996-06509-56853-54385-06908 tcl slt th3 src

Canonical usage: syntax/compound-operator.html

/* IMP: R-34484-27817 */
# EVIDENCE-OF: R-34484-27817 -- syntax diagram compound-operator

R-62819-25014-14742-19526-07437-11316-46744-34017 tcl slt th3 src

Canonical usage: syntax/join-clause.html

/* IMP: R-62819-25014 */
# EVIDENCE-OF: R-62819-25014 -- syntax diagram join-clause

R-22251-01544-43178-13583-65163-47242-05139-28044 tcl slt th3 src

Canonical usage: syntax/join-constraint.html

/* IMP: R-22251-01544 */
# EVIDENCE-OF: R-22251-01544 -- syntax diagram join-constraint

R-37592-60550-55049-61415-11391-65005-23058-12335 tcl slt th3 src

Canonical usage: syntax/join-operator.html

/* IMP: R-37592-60550 */
# EVIDENCE-OF: R-37592-60550 -- syntax diagram join-operator

R-27998-48590-15759-55327-24057-45544-61498-20485 tcl slt th3 src

Canonical usage: syntax/ordering-term.html

/* IMP: R-27998-48590 */
# EVIDENCE-OF: R-27998-48590 -- syntax diagram ordering-term

R-55434-02683-06673-33913-45638-17712-08878-40551 tcl slt th3 src

Canonical usage: syntax/result-column.html

/* IMP: R-55434-02683 */
# EVIDENCE-OF: R-55434-02683 -- syntax diagram result-column

R-48195-34360-11192-44367-16579-00892-09818-30155 tcl slt th3 src

Canonical usage: syntax/table-or-subquery.html

/* IMP: R-48195-34360 */
# EVIDENCE-OF: R-48195-34360 -- syntax diagram table-or-subquery

R-48345-61330-56074-37373-15233-53014-54747-65452 tcl slt th3 src

Canonical usage: syntax/window-defn.html

/* IMP: R-48345-61330 */
# EVIDENCE-OF: R-48345-61330 -- syntax diagram window-defn

R-43427-44402-29451-17649-47289-60254-55729-32554 tcl slt th3 src

Canonical usage: syntax/frame-spec.html

/* IMP: R-43427-44402 */
# EVIDENCE-OF: R-43427-44402 -- syntax diagram frame-spec

R-62486-51739-58335-52148-04934-35692-56858-32635 tcl slt th3 src

Canonical usage: syntax/type-name.html

/* IMP: R-62486-51739 */
# EVIDENCE-OF: R-62486-51739 -- syntax diagram type-name

R-11175-37461-37361-55818-19791-03595-13461-03099 tcl slt th3 src

Canonical usage: syntax/signed-number.html

/* IMP: R-11175-37461 */
# EVIDENCE-OF: R-11175-37461 -- syntax diagram signed-number

R-35371-58843-38332-21753-13618-41551-34238-06657 tcl slt th3 src

The ATTACH DATABASE statement adds another database file to the current database connection.

/* IMP: R-35371-58843 */
# EVIDENCE-OF: R-35371-58843 The ATTACH DATABASE statement adds another
# database file to the current database connection.

R-02612-37947-62500-41847-13282-34946-09245-20088 tcl slt th3 src

The filename for the database to be attached is the value of the expression that occurs before the AS keyword.

/* IMP: R-02612-37947 */
# EVIDENCE-OF: R-02612-37947 The filename for the database to be
# attached is the value of the expression that occurs before the AS
# keyword.

R-57724-31954-10264-24402-01814-32974-35251-10420 tcl slt th3 src

The filename of the database follows the same semantics as the filename argument to sqlite3_open() and sqlite3_open_v2(); the special name ":memory:" results in an in-memory database and an empty string results in a new temporary database.

/* IMP: R-57724-31954 */
# EVIDENCE-OF: R-57724-31954 The filename of the database follows the
# same semantics as the filename argument to sqlite3_open() and
# sqlite3_open_v2(); the special name ":memory:" results in an in-memory
# database and an empty string results in a new temporary database.

R-00402-11496-45496-40393-08263-15231-62727-28991 tcl slt th3 src

The filename argument can be a URI filename if URI filename processing is enable on the database connection.

/* IMP: R-00402-11496 */
# EVIDENCE-OF: R-00402-11496 The filename argument can be a URI filename
# if URI filename processing is enable on the database connection.

R-40602-24566-60725-06279-09295-25327-26293-64572 tcl slt th3 src

The schema-names 'main' and 'temp' refer to the main database and the database used for temporary tables.

/* IMP: R-40602-24566 */
# EVIDENCE-OF: R-40602-24566 The schema-names 'main' and 'temp' refer to
# the main database and the database used for temporary tables.

R-43455-30330-13340-63618-42639-11266-34972-33026 tcl slt th3 src

The main and temp databases cannot be attached or detached.

/* IMP: R-43455-30330 */
# EVIDENCE-OF: R-43455-30330 The main and temp databases cannot be
# attached or detached.

R-04549-59621-55549-18042-51558-13572-61866-18080 tcl slt th3 src

Tables in an attached database can be referred to using the syntax schema-name.table-name.

/* IMP: R-04549-59621 */
# EVIDENCE-OF: R-04549-59621 Tables in an attached database can be
# referred to using the syntax schema-name.table-name.

R-38412-06710-13373-27041-27382-60302-02109-00077 tcl slt th3 src

If the name of the table is unique across all attached databases and the main and temp databases, then the schema-name prefix is not required.

/* IMP: R-38412-06710 */
# EVIDENCE-OF: R-38412-06710 If the name of the table is unique across
# all attached databases and the main and temp databases, then the
# schema-name prefix is not required.

R-55636-16561-36868-23956-09727-21947-00276-50271 tcl slt th3 src

If two or more tables in different databases have the same name and the schema-name prefix is not used on a table reference, then the table chosen is the one in the database that was least recently attached.

/* IMP: R-55636-16561 */
# EVIDENCE-OF: R-55636-16561 If two or more tables in different
# databases have the same name and the schema-name prefix is not used on
# a table reference, then the table chosen is the one in the database
# that was least recently attached.

R-10872-35808-62525-46404-48063-22154-06728-34056 tcl slt th3 src

Transactions involving multiple attached databases are atomic, assuming that the main database is not ":memory:" and the journal_mode is not WAL.

/* IMP: R-10872-35808 */
# EVIDENCE-OF: R-10872-35808 Transactions involving multiple attached
# databases are atomic, assuming that the main database is not
# ":memory:" and the journal_mode is not WAL.

R-34979-54336-33279-53576-25867-30233-28350-04331 tcl slt th3 src

If the main database is ":memory:" or if the journal_mode is WAL, then transactions continue to be atomic within each individual database file. But if the host computer crashes in the middle of a COMMIT where two or more database files are updated, some of those files might get the changes where others might not.

/* IMP: R-34979-54336 */
# EVIDENCE-OF: R-34979-54336 If the main database is ":memory:" or if
# the journal_mode is WAL, then transactions continue to be atomic
# within each individual database file. But if the host computer crashes
# in the middle of a COMMIT where two or more database files are
# updated, some of those files might get the changes where others might
# not.

R-06367-56981-61813-52742-22421-22635-19629-30966 tcl slt th3 src

There is a limit, set using sqlite3_limit() and SQLITE_LIMIT_ATTACHED, to the number of databases that can be simultaneously attached to a single database connection.

/* IMP: R-06367-56981 */
# EVIDENCE-OF: R-06367-56981 There is a limit, set using sqlite3_limit()
# and SQLITE_LIMIT_ATTACHED, to the number of databases that can be
# simultaneously attached to a single database connection.