English Grammar and
Examples
Idioms
Jargon
Body language
MYSQL
Example of Binlog MYSQL Statement
Example of Create Server MYSQL Statement
Example of Cursor Close MYSQL Statement
Example of Cursor Fetch MYSQL Statement
Example of Cursor Open MYSQL Statement
Example of Declare Cursor For MYSQL Statement
Example of Load XML MYSQL Statement
Example of Show Create Trigger MYSQL Statement
Example of Show Relaylog Events MYSQL Statement
Example of Truncate Table MYSQL Statement
Example of Handler MYSQL Statement
Example of Loop MYSQL Statement
Example of Resignal MYSQL Statement
Example of Return MYSQL Statement
Example of Signal MYSQL Statement
Show Function Status
Show Index
Show Master Status
Show Privileges
Show Procedure Code
Show Procedure Status
Show Privileges
Show Profile
Show Profiles
Show Slave Status
Show Status
Show Triggers
Show Variables
Show Function Code
Call
Drop Function
Insert
Install Plugin
Load data infile
Replace

Full list of MYSQL
   Business Letters   Personal Letters   Resumes   CVs and more
       Facebook Example of Load Data Infile Mysql Statement LINKED IN Example of Load Data Infile Mysql Statement del-icio-us Example of Load Data Infile Mysql Statement

Example of Load Data Infile Mysql Statement:

LOAD DATA INFILE '/tmp/test.txt' INTO TABLE test FIELDS TERMINATED BY ',' LINES STARTING BY 'xxx';

LOAD DATA INFILE '/tmp/test.txt' INTO TABLE test IGNORE 1 LINES;

LOAD DATA INFILE 'data.txt' INTO TABLE table2 FIELDS TERMINATED BY ',';

LOAD DATA INFILE 'data.txt' INTO TABLE table2 FIELDS TERMINATED BY ' ';

CREATE TABLE jokes (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, joke TEXT NOT NULL);
LOAD DATA INFILE '/tmp/jokes.txt' INTO TABLE jokes FIELDS TERMINATED BY '' LINES TERMINATED BY ' %% ' (joke);

Example of Mysql Load Data Infile


LOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL]
INFILE
'file_name'
[REPLACE | IGNORE]
INTO TABLE
tbl_name
[CHARACTER SET charset_name]
[{FIELDS | COLUMNS}
[TERMINATED BY 'string']
[[OPTIONALLY] ENCLOSED BY 'char']
[ESCAPED BY 'char']
]
[LINES
[STARTING BY
'string']
[TERMINATED BY 'string']
]
[[IGNORE number LINES]
[(col_name_or_user_var,...)]
[SET col_name = expr,...]

         


Link to this page:
* Required Fields
 Add Comment:
Name* :
Email :
Comment* :
 
Contact Us About Us Privacy Policy Disclaimer
Copyright © 2008 - 2011 ExamplesOf .com