SQLite Forum

attach-stmt syntax documentation ?
Login
> I don't understand how the syntax diagram for expr describes a path to the database file that is being attached. 

The expression may be arbitrarily complex, so long as it resolves to a value suitable for use as a file name. As a trivial example:


```
attach 'a' || '.db' as foo
```