伪表:
| primary_key | first_name | last_name | date_of_birth |
| 1 | John Smith | | 07/04/1982 |
目前first_name包含多行的用户全名。期望的结果是拆分数据,因此 first_name 包含“John”,last_name 包含“Smith”。
我有一个 CSV 文件,其中包含所需的数据格式:
| primary_key | first_name | last_name |
| 1 | John | Smith |
有没有办法使用 LOAD DATA INFILE 命令处理 CSV 文件以使用 primary_key 更新此表中的所有行 - 并且在此过程中不替换行中的任何其他数据(即 date_of_birth)?