mysql-loaddata-stmt

Generate and execute MySQL LOAD DATA statements with method chains.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/PillArmy/army --skill mysql-loaddata-stmt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mysql-loaddata-stmt
Source: https://github.com/PillArmy/army/tree/main/.trae/skills/mysql-loaddata-stmt
Command: npx skills add https://github.com/PillArmy/army --skill mysql-loaddata-stmt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the complexity of writing and executing MySQL's LOAD DATA statements by providing a comprehensive method chain interface, simplifying the process of data loading into MySQL databases.

Core Features & Use Cases

  • MySQL LOAD DATA Method Chain: Offers a method chain to build complex LOAD DATA statements programmatically.
  • File Importation: Enables batch data import from files into MySQL tables.
  • Data Manipulation: Allows for options like LOCAL, REPLACE/IGNORE, character set, field/column format, partitioning, and SET clauses.
  • Use Case: When you need to load a large dataset from a CSV file into a MySQL table with specific configurations, such as ignoring duplicates or replacing existing data.

Quick Start

Use the mysql-loaddata-stmt skill to import data from 'data.csv' into 'my_table' with the ignore option and the utf8mb4 character set.

Frequently Asked Questions about mysql-loaddata-stmt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bulk import a CSV file into a MySQL table while ignoring duplicates?

To bulk import a CSV file into a MySQL table while ignoring duplicates, use the LOAD DATA statement with the IGNORE option. This method chain allows batch data loading and automatically skips rows that would violate unique key constraints.

What is the best way to automate generating MySQL LOAD DATA statements with custom character sets?

The best way to automate generating MySQL LOAD DATA statements with custom character sets is using a programmatic method chain interface. This allows you to specify configurations like utf8mb4 character sets and field formats dynamically without writing raw SQL manually.

Can I use the LOAD DATA statement to replace existing rows during a data import?

Yes, you can use the LOAD DATA statement to replace existing rows during a data import. By specifying the REPLACE option in your statement configuration, the database overwrites existing records when duplicate primary or unique keys are encountered.

Does executing a MySQL LOAD DATA statement require local database connectivity?

Executing a MySQL LOAD DATA statement requires active MySQL database connectivity. It supports the LOCAL option to read files from the client machine, but a valid connection to the target MySQL server is mandatory to perform the bulk data import.