Ubuntu でシェル スクリプトを使用して CSV ファイルを MySQL に挿入することは可能ですか?
これが私が試したことです:
mysql -uroot -proot mysfdb < /home/sf/data.csv
しかし、私はエラーが発生しました
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
CSV ファイルのサンプル コンテンツを次に示します。
showinventory_SST312V8N4615041313_1366009574txt_,800-200002.A0,00007985
何か案は?