LoginSignup
0
0

More than 5 years have passed since last update.

HeidiSQL で CSV ファイルインポート

Posted at

使い方

  • ツール > CSV ファイルのインポート
  • テーブルを truncate してからインポートするにチェック
  • 制御文字
    • フィールド区切り文字を「,」に設定
    • フィールドエスケープ文字を空に設定
  • autoincrement なフィールドがある場合
    • カラムのチェックを外す
    • CSV ファイルからも項目を削除する

失敗例

フィールド区切り文字のデフォルトが「;」になっててそれに気づかず実行すると以下エラーが発生する
/* Warning (1261): Row 1 doesn't contain data for all columns */

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0