Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法从LOAD DATAMySQL 中的文件中只导入一个块,或者我必须手动对文件进行分区?
LOAD DATA
您必须手动对文件进行分区。因为 LOAD DATA 会将完整的文件加载到表中。
您可以使用 :
LOAD DATA INFILE ... IGNORE x LINES
文档
You would not be able to import only a chunk from a file. You would have to partition the file manually. Because load data will load the complete file.