Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Export use ~ as a Field terminator.

Featured Replies

I am trying to import my table into mysql. The problem is I am using " for the enclosed deliminator. The problem is my data has " in it. Thus, I am getting an errors.

[color:red]How can I export a table using a special character(eg. |) as the terminator and ~ as the fields enclosed.

[color:green]Thus it would look something like this:

~field1~|~field2~|~field3~

The only way I can think of doing this is to use a calculation. There must be a better way.

Edited by Guest

  • Author

Ok, I made a calculation and the format is correct. Now the problem is how to I save it to just a txt file without any formatting. If I do an export then I would get formatting.

Here is my calculation-->

[color:red]"~" & "~" & "|" &

"~" & mysqlDate & "~" & "|" &

"~" & name2 & "~" & "|~" &

html_Data & "~"

Why do you need to reinvent the wheel? The csv format knows how to handle quotes and commas in fields.

  • Author

I totally agree with you. I did try csv because I figured that would be the easiest way, BUT....

[color:blue]

Homeowner-general contractor dispute SETTLED:

"A difficult case was

As I said, the csv format is well equipped to deal with both quotes and commas in fields, and Filemaker exports the data correctly. I'd suggest you look for answers on the side of MySQL. It's not simple to export data with custom delimiters (though it is possible - e.g. by using exporting a single calculation field as tab-delimited file, or when exporting as XML with a custom stylesheet).

  • Author

by using exporting a single calculation field as tab-delimited file

This is how I have done it and it seemed to work fine.

The only quesiton I have is that I believe there was a limitation when using a calculation. If so, what is the limitation?

I am not aware of anything that isn't obvious, like having no separators within field data. I would still look for a way to import a valid .cvs into MySQL - I am sure you are not the first one wanting to do that.

BTW, it could be more convenient to do the calculation as =

Let (

separator = "~"

;

Substitute ( List (

Field1 ;

Field2 ;

Field3

) ; ¶ ; separator )

)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.