I have this table in csv file

Now i have two mysql tables dealing with this csv file,
Data A, B, C has to get stored in Table1 whereas data D, E, F, G, H has to get stored in Table2.
I have the above formatted csv file, how can i upload its data to MYSQL database??
So that from same file input can be done for different tables.
LOAD DATA INFILESQL command, you can have a look at this article: blog.terresquall.com/2022/05/…