Import csv file into mysql using navicat

Import csv file into mysql using navicat

This article shares the specific code for importing csv files into mysql using navicat for your reference. The specific content is as follows

1. Open navicat, connect to the database and find the table you want to import data into. The database tables are under Tables under the specified database.

2. Right-click the data table. Click import wizard.

3. Select the file type to import data. This article takes csv file as an example and selects the csv file.

4. Next, select the location of the file. You can click the ellipsis after the first empty input box to locate your own file by browsing the file system. Select the same encoding as your file.

5. The first option is record segmentation, you can use the default, the second option is field separator, csv file default segmentation.

6.field name row indicates the location of the field name, usually the first row. First data row indicates the position of the first data. If there is no field name, the value is 1. If there is a field name, the value is 2. The last data last data row . If only the first few data are needed, the position of the last data can be filled in here. If this is empty, all data will be imported by default. Below is the format setting. date order indicates the position of year, month and day in the date display. Y represents year, M represents month and D represents day. The selection here is based on your own file. date delimiter represents the separator in the date and time delimiter represents the separator in the time display. The following can be used by default. For example, if the date in my file is 2010-10-11 12:12:12 , date order is YMD , date delimiter is - , and time delimiter is .

7.The source table indicates the location where the data is stored, and the target table indicates the table into which the data is imported.

8. Indicates the data flow direction. The user_id data in the source table will be imported into the user_id of the target table.

9. There are two ways to import data. One is append , which means adding data after existing records. The other is copy , which means deleting the existing data and then adding data.

10. Click start to begin execution.

這里寫圖片描述

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • How to use Navicat to import SQL files
  • Solve the problem of Navicat importing database data structure sql reporting error datetime(0)
  • Navicat imports csv data into mysql
  • How to import Chinese data into csv in Navicat for SQLite
  • Navicat for MySql Visual Import CSV File
  • How to use Navicat to export and import mysql database
  • Solution to the error when importing MySQL big data in Navicat
  • How to import SQL files in Navicat Premium

<<:  Nodejs converts JSON string into JSON object error solution

>>:  Detailed explanation of the solution to Ubuntu dual system stuck when starting

Recommend

How to submit a pure HTML page, pass parameters, and verify identity

Since the project requires a questionnaire, but th...

A brief discussion on VUE uni-app custom components

1. Parent components can pass data to child compo...

Use of Linux ln command

1. Command Introduction The ln command is used to...

Essential knowledge for web development interviews and written tests (must read)

The difference between inline elements and block-...

Detailed tutorial on docker-compose deployment and configuration of Jenkins

Docker-compose deployment configuration jenkins 1...

How to remotely log in to the MySql database?

Introduction: Sometimes, in order to develop a pr...

JS Asynchronous Stack Tracing: Why await is better than Promise

Overview The fundamental difference between async...

About the use of Vue v-on directive

Table of contents 1. Listening for events 2. Pass...

vue+ts realizes the effect of element mouse drag

This article example shares the specific code of ...

Detailed explanation of XML syntax

1. Documentation Rules 1. Case sensitive. 2. The a...

The difference between MySQL database host 127.0.0.1 and localhost

Many of my friends may encounter a problem and do...