SQL
Database Names
Database names are subject to the rules for [identifiers](#::identifiers).  
Additionally, it is best practice to avoid DuckDB's two internal [database schema names](#docs:sql:meta:duckdb_table_functions::duckdb_databases), `system` and `temp`.
By default, persistent databases are named after their filename without the extension.
Therefore, the filenames `system.db` and `temp.db` (as well as `system.duckdb` and `temp.duckdb`) result in the database names `system` and `temp`, respectively.
If you need to attach to a database that has one of these names, use an alias, e.g.:  
```sql
ATTACH 'temp.db' AS temp2;
USE temp2;
```