Skip to content

Instantly share code, notes, and snippets.

@rdmpage
Created May 18, 2015 10:37
Show Gist options
  • Select an option

  • Save rdmpage/250214b39ae83fedc87e to your computer and use it in GitHub Desktop.

Select an option

Save rdmpage/250214b39ae83fedc87e to your computer and use it in GitHub Desktop.
Simple ION dump
SELECT
IFNULL(id, ""),
IFNULL(cluster_id, ""),
IFNULL(nameComplete, ""),
IFNULL(taxonAuthor, ""),
IFNULL(`group`, ""),
IFNULL(publication, "")
INTO OUTFILE "/tmp/markus.tsv"
FIELDS TERMINATED BY "\t" ENCLOSED BY "" ESCAPED BY ""
LINES TERMINATED BY "\n"
FROM names;
@rdmpage

rdmpage commented May 18, 2015

Copy link
Copy Markdown
Author

Query OK, 4939276 rows affected (5 min 2.38 sec)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment