10.0 Introduction
10.1 Importing Data with LOAD DATA and mysqlimport
Problem
Solution
Discussion
10.2 Specifying the Datafile Location
Problem
Solution
Discussion
10.3 Specifying the Structure of the Datafile
Problem
Solution
Discussion
10.4 Dealing with Quotes and Special Characters
Problem
Solution
Discussion
10.5 Importing CSV Files
Problem
Solution
Discussion
10.6 Reading Files from Different Operating Systems
Problem
Solution
Discussion
10.7 Handling Duplicate Key Values
Problem
Solution
Discussion
10.8 Obtaining Diagnostics About Bad Input Data
Problem
Solution
Discussion
10.9 Skipping Datafile Lines
Problem
Solution
Discussion
10.10 Specifying Input Column Order
Problem
Solution
Discussion
10.11 Preprocessing Input Values Before Inserting Them
Problem
Solution
Discussion
10.12 Ignoring Datafile Columns
Problem
Solution
Discussion
See Also
10.13 Exporting Query Results from MySQL
Problem
Solution
Discussion
See Also
10.14 Exporting Tables as Text Files
Problem
Solution
Discussion
10.15 Exporting Table Contents or Definitions in SQL Format
Problem
Solution
Discussion
10.16 Copying Tables or Databases to Another Server
Problem
Solution
Discussion
10.17 Writing Your Own Export Programs
Problem
Solution
Discussion
10.18 Converting Datafiles from One Format to Another
Problem
Solution
Discussion
10.19 Extracting and Rearranging Datafile Columns
Problem
Solution
Discussion
10.20 Using the SQL Mode to Control Bad Input Data Handling
Problem
Solution
Discussion
10.21 Validating and Transforming Data
Problem
Solution
Discussion
10.22 Using Pattern Matching to Validate Data
Problem
Solution
Discussion
10.23 Using Patterns to Match Broad Content Types
Problem
Solution
Discussion
10.24 Using Patterns to Match Numeric Values
Problem
Solution
Discussion
10.25 Using Patterns to Match Dates or Times
Problem
Solution
Discussion
See Also
10.26 Using Patterns to Match Email Addresses or URLs
Problem
Solution
Discussion
10.27 Using Table Metadata to Validate Data
Problem
Solution
Discussion
10.28 Using a Lookup Table to Validate Data
Problem
Solution
Discussion
Issue individual statements
Construct a hash from the entire lookup table
Use a hash as a cache of already-seen lookup values
10.29 Converting Two-Digit Year Values to Four-Digit Form
Problem
Solution
Discussion
10.30 Performing Validity Checking on Date or Time Subparts
Problem
Solution
Discussion
10.31 Writing Date-Processing Utilities
Problem
Solution
Discussion
10.32 Using Dates with Missing Components
Problem
Solution
Discussion
10.33 Importing Non-ISO Date Values
Problem
Solution
Discussion
10.34 Exporting Dates Using Non-ISO Formats
Problem
Solution
Discussion
10.35 Importing and Exporting NULL Values
Problem
Solution
Discussion
10.36 Guessing Table Structure from a Datafile
Problem
Solution
Discussion
10.37 Exchanging Data Between MySQL and Microsoft Access
Problem
Solution
Discussion
10.38 Exchanging Data Between MySQL and Microsoft Excel
Problem
Solution
Discussion
10.39 Exporting Query Results as XML
Problem
Solution
Discussion
10.40 Importing XML into MySQL
Problem
Solution
Discussion
10.41 Epilogue