Tool Import Table from SQL Query
Import a SQL table from a PostgreSQL database.
- Author: O.Conrad (c) 2013
- Menu: Database|PostgreSQL|Tables
Parameters
| Name | Type | Identifier | Description | Constraints |
Output | Query Result | table, output | TABLE | - | - |
Options | Host | text, CMD | PG_HOST | - | Default: 127.0.0.1 |
Port | integer number, CMD | PG_PORT | - | Minimum: 0 Default: 5432 |
Database | text, CMD | PG_NAME | - | - |
User | text, CMD | PG_USER | - | - |
Password | text, CMD | PG_PWD | - | - |
Connections | choice, GUI | CONNECTION | - | Available Choices: Default: 0 |
Tables | text | TABLES | - | - |
Fields | text | FIELDS | - | - |
Where | text | WHERE | - | - |
Group by | text | GROUP | - | - |
Having | text | HAVING | - | - |
Order by | text | ORDER | - | - |
Distinct | boolean | DISTINCT | - | Default: 0 |
Command-line
Usage: saga_cmd db_pgsql 15 [-PG_HOST <str>] [-PG_PORT <num>] [-PG_NAME <str>] [-PG_USER <str>] [-PG_PWD <str>] [-TABLE <str>] [-TABLES <str>] [-FIELDS <str>] [-WHERE <str>] [-GROUP <str>] [-HAVING <str>] [-ORDER <str>] [-DISTINCT <str>]
-PG_HOST:<str> Host
text, CMD
Default: 127.0.0.1
-PG_PORT:<num> Port
integer number, CMD
Minimum: 0
Default: 5432
-PG_NAME:<str> Database
text, CMD
-PG_USER:<str> User
text, CMD
-PG_PWD:<str> Password
text, CMD
-TABLE:<str> Query Result
table, output
-TABLES:<str> Tables
text
-FIELDS:<str> Fields
text
-WHERE:<str> Where
text
-GROUP:<str> Group by
text
-HAVING:<str> Having
text
-ORDER:<str> Order by
text
-DISTINCT:<str> Distinct
boolean
Default: 0