Sql*loader (SQLLDR) is a high-speed batch data loading tool for Oracle. This is a useful tool for loading data into the Oralce database in a variety of flat file formats. Today I saw the application for the use of *loader, I have a small try,
1, the first Data training Xltrabackup backup, be prepared, remember to remember!2.Mysql-uroot-pd********--export CSV file use dsideal_db; MariaDB [dsideal_db]> SELECT * fromT_resource_info into OUTFILE"/usr/local/mysql/t_resource_info.txt"Fields
Here is the simplest test with Excel data.
1 Save Excel data as T.txt file, note file suffix named. txt
1 jhchen 11/07/2005 20:04:00 2005-11-7 20:04
2 jhchen 11/07/2005 20:04:00 2005-11-7 20:04
3 Jhchen 11/07/2005 20:04:00 2005-11-7 20:04
2)Sql>
Load data [low_priority] [local] infile 'file_name.txt '[Replace | ignore] into Table tbl_name[Fields[Terminated by '\ T'][Optionally] enclosed by ''][Escaped by '\'][Lines terminated by '\ n'][Ignore number lines][(Col_name,...)]
Load daThe TA
In order to facilitate the use of the reprinted article: http://www.oracle.com.cn/viewthread.php? Tid = 13979 & extra = & page = 1sql Load
Sqlldr userid = lgone/tiger control = A. CTL
Load data
Infile't. dat // file to be imported
// Infile 'tt.
Logical Backup MysqldumpThe Mysqldump Backup tool was originally written by Igor Romanenko and is typically used to complete a backup of the dump database and porting between different databases, such as upgrading from a low-version MySQL database
SQL * Loader is a tool used to import external data from Oracle databases. it is similar to the Load tool of DB2, but has more options. It supports variable loading modes, optional loading and multi-Table loading.
How to use SQL * Loader
We can use
This article mainly introduces the MySQLload statement in detail. This article describes the basic syntax of load, file path, configuration options, STARTINGLINES options, TERMINATEDLINES options, and so on. For more information, see
Load
The syntax of load
Copy Code code as follows:
LOAD DATA [Low_priority | CONCURRENT] [local] INFILE ' File_name.txt '
[REPLACE | IGNORE]
Into TABLE tbl_name
[FIELDS
[Terminated by ' string ']
[[optionally] enclosed by '
Here we use excel Data for the simplest test.
1) Save the excel data as a t.txt file. Note that the file suffix is. txt.
1 jhchen 11/07/2005 20:04:00 2005-11-7 20:04
2 jhchen 11/07/2005 20:04:00 2005-11-7 20:04
3 jhchen 11/07/2005 20:04:00 2005-11-
MySQL exports import data in the following ways: 1) Select ... into outfile2) Load Data3) mysqldump4) Mysqlimport5) MySQL One, table level import, exportAbout character handling has the following related clauses:1) field terminated by ': Use
Welcome to the Oracle community forum and interact with 2 million technical staff. 1. comment in the control file --. 2. To prevent Chinese garbled characters from being imported, add the character set control LOADDATACHARACTERSETZHS16GBK3 to the
Batch processing is a non-interactive way to run mysql programs. like the commands you use in mysql, you will still use these commands. To implement batch processing, you need to redirect a file to the mysql program. First, we need a text file
Mysql data import method mysqlimport bitsCN.com
Mysql data import method mysqlimport
1). mysqlimport syntax introduction:
Mysqlimport is located in the mysql/bin directory and is a very effective tool for mysql to load (or import) data. This is a
mysql| data
MySQL data import export methods and tools introduction (2-import from SQL files)
Batch import file, import data from SQL file into database
Translation statement:
This article is part of a book from Sam's Teach yourself MySQL in and by
Oracle Sql*loader is a tool for Oracle databases to import external data. It is similar to the DB2 load tool, but with more options, it supports varying loading modes, optional loading and multiple table loading.
How to use the Sql*loader tool
We
The sample SQL statements for exporting CSV format data in MySQL are as follows:SQL code
SELECT * FROM test_info
into outfile '/tmp/test.csv '
Fields terminated by ', ' optionally enclosed by ' "' escaped by '" '
MySql: www.mysql.org
First, start and stop the mysql Service
Net stop mysql
Net start mysql
Second, log on to mysql
Mysql-u user name-p User Password
Mysql-uroot-p. After you press enter, you are prompted to enter the password, enter 12345,
A sample SQL statement for exporting CSV data in MySQL is as follows:
SQL codeSelect * from test_infoInto outfile '/tmp/test.csv'Fields terminated by ', 'optionally enclosed by' "'escaped '"'Lines terminated by '\ r \ n ';
Select * from
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.