简体   繁体   中英

Ignore first colunm when importing csv into sql

I have a csv file with 3 columns I want to import into MySQL with Load data infile. The columns are date, item, and qty. I need all three for one table they are going in but only item and qty for the second table. How can I perform this? Would it be the same as Ignore Row?

If you are using the Import / Export wizard, when you get to Select Source Tables and Views click on the button "Edit Mappings" on the bottom left of the screen. That opens column mappings screen; on the destination column select Ignore to remove the column you don't want to import.

https://support.discountasp.net/kb/a1179/importing-a-csv-file-into-your-database-with-sql-server-management-studio.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM