Guides
Version
The `version()` function returns the version number of DuckDB.  
```sql
SELECT version() AS version;
```  
<div class="narrow_table monospace_table"></div>  
| version |
|-----------|
| v{{ site.currentduckdbversion }} |  
Using a `PRAGMA`:  
```sql
PRAGMA version;
```  
<div class="narrow_table monospace_table"></div>  
| library_version | source_id  |
|-----------------|------------|
| v{{ site.currentduckdbversion }} | {{ site.currentduckdbhash }} |