El_Pablo Posted August 25, 2009 Posted August 25, 2009 Wouldn't be nice if FM provided a SQL function to fetch some data as a csv formatted list. Example : SQLCommand ("SELECT a, b, c FROM myTable WHERE myTable::a = 1"; mySeparator) Would return a list looking like this : col_a;col_b_;col_c¶ col_a;col_b_;col_c¶ col_a;col_b_;col_c¶ ...
comment Posted August 25, 2009 Posted August 25, 2009 Why would this need to be a SQL function? I believe you can get the described result using a custom function.
El_Pablo Posted August 25, 2009 Author Posted August 25, 2009 (edited) How to do this using SQL? Edited August 25, 2009 by Guest
comment Posted August 25, 2009 Posted August 25, 2009 How to do this using SQL? I didn't say do this using SQL. I said you can do this using a Filemaker custom function, for example: http://www.briandunning.com/cf/309
El_Pablo Posted August 25, 2009 Author Posted August 25, 2009 Thanks, the function is very interesting! But still, the SQL function is more universal and allows conditionnal expression.
comment Posted August 25, 2009 Posted August 25, 2009 You can add a condition to the custom function, if you like. In any case, Filemaker is not a SQL database, and there would be little sense in trying to make it respond to SQL commands (though I believe there is a plugin that does that).
El_Pablo Posted August 25, 2009 Author Posted August 25, 2009 I know it's possible using ODBC connection, but it's not embedded in FM.
Recommended Posts
This topic is 5569 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now