Answers:
如果您可以使用Python,Pandas对我来说效果很好(csvsql永久挂起,cols和行数比您的情况少)。就像是:
from sqlalchemy import create_engine
import pandas as pd
df = pd.read_csv('/PATH/TO/FILE.csv', sep='|')
# Optional, set your indexes to get Primary Keys
df = df.set_index(['COL A', 'COL B'])
engine = create_engine('mysql://user:pass@host/db', echo=False)
df.to_sql(table_name, engine, index=False)
engine
!更正了答案,感谢您发现
dwh_engine
?这是拼写错误engine
吗?