...
 
Commits (2)
......@@ -66,51 +66,41 @@ To do this you must issue the following commands
#+sql
:output file
:path '/users/jschlitt/Downloads/jeff1'
:type csv
:delimiter ','
:null_value 'NULL'
:quote_char '"'
:escape_char '\'
:row_delimiter '/'
:overwrite true
#+begin
select * from wb_pro_marketing_list
where emaildomain = 'aginity.com'
#+end
.. note::
We only support today the file type of csv. You can still change the delimiter but all files with have a csv extension
The table below illustrates the current values accepted in execute to file commands
+--------------------------------------+---------------------------------------+
| Parameter | Options |
+======================================+=======================================+
| path | On Mac this should be in the format |
| | "/dir/dir/filename". On Windows it |
| | should be in the format |
| | "drive:\\directory\\filename". |
+--------------------------------------+---------------------------------------+
| type | Only supported file type today is |
| | csv. This is only the extension, |
| | you can change the delimiter. |
+--------------------------------------+---------------------------------------+
| delimiter | You can use any value but we |
| | recommend , or | or ^ or \\t for (tab)|
+--------------------------------------+---------------------------------------+
| null_value | enter a character field for null |
| | typically '' (empty string) or 'NULL' |
+--------------------------------------+---------------------------------------+
| quote_char | enter how to enclose character string |
| | typically the quotation (") |
+--------------------------------------+---------------------------------------+
| escape_char | if an escape character is seen it |
| | will be seen with the "\\\\" character|
+--------------------------------------+---------------------------------------+
| row_delimiter | an end of row is signified with a |
| | carriage return. This feature is |
| | not implemented yet. |
+--------------------------------------+---------------------------------------+
| overwrite | whether or not to allow overwrite |
| | if file exists: true or false |
+--------------------------------------+---------------------------------------+
+--------------------------------------+--------------------------------------+
| Parameter | Options |
+======================================+======================================+
| path | On Mac this should be in the format |
| | "/dir/dir/filename". On Windows it |
| | should be in the format |
| | "drive:\directory\filename". |
+--------------------------------------+--------------------------------------+
| delimiter | You can use any value but we |
| | recommend , or | or ^ or \t for (tab)|
+--------------------------------------+--------------------------------------+
| null_value | enter a character field for null |
| | typically '' (empty string) or 'NULL'|
+--------------------------------------+--------------------------------------+
| quote_char | enter how to enclose character string|
| | typically the quotation (") |
+--------------------------------------+--------------------------------------+
| overwrite | whether or not to allow overwrite |
| | if file exists: true or false |
+--------------------------------------+--------------------------------------+
.. note::
At Aginity, we produce lists for marketing purposes using a single catalog item called "Product Daily Marketing Feeds" that execute twenty five queries and spool the results to twenty five csv files which we upload to our marketing engine all with the click of the Run button in Aginity Team.
......