- --dialect <DIALECT>
SQL dialect.
By default the native SQL of an RDBMS is used when using
gdal vector sql. If usingsqlas a step ofgdal vector pipeline, this is only true if the step precedingsqlisread, otherwise the OGRSQL dialect is used.If a datasource does not support SQL natively, the default is to use the
OGRSQLdialect, which can also be specified with any data source.The SQL SQLite dialect dialect can be chosen with the
SQLITEandINDIRECT_SQLITEdialect values, and this can be used with any data source. Overriding the default dialect may be beneficial because the capabilities of the SQL dialects vary.Supported dialects can be checked with
gdal --format. For example:$ gdal --format "PostgreSQL" [...] Supported SQL dialects: NATIVE OGRSQL SQLITE [...] $ gdal --format "ESRI Shapefile" [...] Supported SQL dialects: OGRSQL SQLITE [...]