SAGA 9.4.2 | Tool Library Documentation

Import Table from Query


Description

Import a table from a database through ODBC via SQL query. > SELECT [DISTINCT|ALL] 'Fields' FROM 'Tables' WHERE 'Where' [GROUP BY 'Group' [HAVING 'Having']] [ORDER BY 'Order']


Parameters

 NameTypeIdentifierDescriptionConstraints
OutputTabletable, outputTABLE--
OptionsData Sourcetext, CMDODBC_DSN--
Usertext, CMDODBC_USR--
Passwordtext, CMDODBC_PWD--
TablestextTABLES--
FieldstextFIELDS-Default: *
WheretextWHERE--
GrouptextGROUP--
HavingtextHAVING--
OrdertextORDER--
DistinctbooleanDISTINCT-Default: 0

Command Line


Usage: saga_cmd db_odbc 8 [-ODBC_DSN ] [-ODBC_USR ] [-ODBC_PWD ] [-TABLE ] [-TABLES ] [-FIELDS ] [-WHERE ] [-GROUP ] [-HAVING ] [-ORDER ] [-DISTINCT ]
  -ODBC_DSN:	Data Source
	text, CMD
  -ODBC_USR:	User
	text, CMD
  -ODBC_PWD:	Password
	text, CMD
  -TABLE:   	Table
	table, output
  -TABLES:  	Tables
	text
  -FIELDS:  	Fields
	text
	Default: *
  -WHERE:   	Where
	text
  -GROUP:   	Group
	text
  -HAVING:  	Having
	text
  -ORDER:   	Order
	text
  -DISTINCT:	Distinct
	boolean
	Default: 0