---
title: "将MySQL中数据导入到指定文件中"
author: "chakey"
date: "2010-11-16T17:30:41Z"
tags: ["MySQL"]
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2010-11-16T17:30:41Z"
id: 813055
url: "https://datalife.iteye.com/blog/813055"
---

select id ,name,uid

 from a\_result\_user

where  id &gt;= '20101111'  

into outfile '/tmp/a\_result\_user'

FIELDS TERMINATED BY ','

ENCLOSED BY '"'

LINES TERMINATED BY '\\n'