Load MySQL

Runs a script basic routine which invokes the MYSQL command LOAD DATA LOCAL INFILE.

Proc SQL Syntax

proc sql data=DATAFILE db=DBTYPE;
connect CONNECT;
table TABLENAME;

Proc SQL - Parameters Used

There are four primary parameters for the load statement:
DATAFILE - the datafile to be loaded
DBTYPE - type of database, always 'mysql'
CONNECT - the mysql connection parameter name in the Scriptbasic ini file
TABLENAME - name of the table to be loaded with data

Proc SQL - Example Script

*;
* myload1.ezs;
* Proc SQL for data load handling;
* ;
libname test 'c:\test\model';
libname drug 'c:\cloop\data';
proc sql data = test.b db=mysql;
connect test;
table x;

The Proc SQL procedure is part of EZ-R Stats for Windows.

Analysts interested in Proc SQL may also be interested in Proc Means, Proc Outlier, Proc Benford and Proc Univariate.


Web Page last updated on 10-24-2006
© EZ-R Stats, LLC 2005-2007

© EZ_R Stats

Visit EZ_R Stats on the web at:

www.ezrstats.com