SAGA-GIS Tool Library Documentation (v6.1.0)

Tool Import Table from SQL Query

Import a SQL table from a database via ODBC.

Parameters

 NameTypeIdentifierDescriptionConstraints
OutputTable from SQL QueryTable (output)TABLE--
OptionsDSNTextODBC_DSNData Source Name-
UserTextODBC_USRUser Name-
PasswordTextODBC_PWDPassword-
Server ConnectionChoiceCONNECTIONServer ConnectionAvailable Choices:
[0]
Default: 0
TablesTextTABLES--
FieldsTextFIELDS-Default: *
WhereTextWHERE--
Group byTextGROUP--
HavingTextHAVING--
Order byTextORDER--
DistinctBooleanDISTINCT-Default: 0

Command-line

Usage: saga_cmd db_odbc 8 [-ODBC_DSN <str>] [-ODBC_USR <str>] [-ODBC_PWD <str>] [-TABLE <str>] [-TABLES <str>] [-FIELDS <str>] [-WHERE <str>] [-GROUP <str>] [-HAVING <str>] [-ORDER <str>] [-DISTINCT <str>]
  -ODBC_DSN:<str>	DSN
	Text
  -ODBC_USR:<str>	User
	Text
  -ODBC_PWD:<str>	Password
	Text
  -TABLE:<str>   	Table from SQL Query
	Table (output)
  -TABLES:<str>  	Tables
	Text
  -FIELDS:<str>  	Fields
	Text
	Default: *
  -WHERE:<str>   	Where
	Text
  -GROUP:<str>   	Group by
	Text
  -HAVING:<str>  	Having
	Text
  -ORDER:<str>   	Order by
	Text
  -DISTINCT:<str>	Distinct
	Boolean
	Default: 0