Bulk Insert from Dataframe

31 Views Asked by At

Can i do Bulk Insert from dataframe instead from a csv file

here is my code

sql = " BULK INSERT " + str(tbl_name) + "  FROM '" + fl_path + "' WITH (FIRSTROW = 2,FIELDTERMINATOR='',ROWTERMINATOR = '\r\n',CODEPAGE = '65001'); "
engine.execute(text(sql).execution_options(autocommit=True))
0

There are 0 best solutions below