我通过右击Schema来使用"Table Data Import Wizard“选项来导入CSV文件。
但是,我的CSV文件包含货币字符,例如美元符号和逗号(例如$1,025.57)。当我导入CSV并将字段类型更改为整型或双精度时,MySQL无法加载数据。我能让它显示的唯一方法是将这些列作为文本导入。显然,我不想把它作为文本。有没有办法让MySQL工作台将这些字段识别为整型或双精度型,或者识别为数值而不是文本?
我希望避免手动打开CSV和手动格式化它,因为它涉及更多的工作。
这是原始数据副本,并粘贴在这里:
Brand tag1 tag2 tagID taggroup media_type date direct_revenue total_views total_visitors
Jim's Fish Shop Seafood Bait JFS12481 Fish Bait Search 1/1/2016 $1.34 250 15
Jim's Fish Shop Seafood Bait JFS12482 Fish Bait Search 1/2/2016 $7.87 1,087 67
Jim's Fish Shop Seafood Bait JFS12483 Fish Bait Search 1/3/2016 $0.22 2,582 123
Jim's Fish Shop Seafood Bait JFS12484 Fish Bait Search 1/4/2016 $2.01 2,126 122
Jim's Fish Shop Seafood Bait JFS12485 Fish Bait Search 1/5/2016 $2.58 3,349 223原始图片(谁知道是什么类型的图片):

https://stackoverflow.com/questions/38193310
复制相似问题