I have a table in JMP with some numeric columns, character columns, date columns and a couple columns with big chunks of text (full of special characters, commas, .
I would like to upload this table to MySQL but I am facing some challenges. I have tried several methods:
Method 1 - save as csv, upload via workbench/other mysql tool
JMP does not seem to code the text pieces (special characters) into the csv properly and when I upload the csv, some of the characters in the text blocks are interpreted as different cells and the full row of data ends up being messed up. I corrected the "\n" and "\r" manually but there are still some other characters that are not well coded and make the csv fail to upload correctly.
Method 2 - upload via JMP "upload table to DB"
Unfortunately, this option only allows for AUTOMATIC (no data column type selection) uploading of a NEW table. This results in JMP defining the text blocks as CHAR (255) which is not big enough to accomadate the text I have and it therefore gets truncated.
My ideal solution:
- I would just create a table in my schema with the correct columns and column definitions.
- I would then use a script to upload the data to that pre-existing empty (or not!) table.
I have been looking in the community and I have found bits and pieces of code that may help me to start putting together a script to do the above.
Three questions then:
- Am I doing something wrong when converting to csv or is this just a bug in JMP that needs to be adressed?
- Any other idea/methods you could think of to upload this dataset?
- Any help with putting together the above script would be very welcome!
Thanks in advance!