execute_params = [] # stmt = "insert into get_item_log_08_18 values (%s, %d, %d, %d, %s, %d, %d, %d, %d, %s, %d, %d, %d, %s, %d, %d, %d, %s, %d, %d, %d)" stmt ...
私の場合、インサートするレコード数を分割(約20,000レコード → 5,000レコード単位で分割)することで、エラーは出なくなりました。 この記事で使用したソフトウェアのバージョンを記載しておきます。 Python の mysql-connector-python で20,000レコードほどの ...
is using string-conversion. If the operation consists of '?,?,?' python sees nothing to convert and complains that not all the elements of the tuple were converted. If you use '%s,%s,%s' instead, ...