El_Pablo Posted August 25, 2009 Share 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¶ ... Link to comment Share on other sites More sharing options...
comment Posted August 25, 2009 Share 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. Link to comment Share on other sites More sharing options...
El_Pablo Posted August 25, 2009 Author Share Posted August 25, 2009 (edited) How to do this using SQL? Edited August 25, 2009 by Guest Link to comment Share on other sites More sharing options...
comment Posted August 25, 2009 Share 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 Link to comment Share on other sites More sharing options...
El_Pablo Posted August 25, 2009 Author Share Posted August 25, 2009 Thanks, the function is very interesting! But still, the SQL function is more universal and allows conditionnal expression. Link to comment Share on other sites More sharing options...
comment Posted August 25, 2009 Share 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). Link to comment Share on other sites More sharing options...
El_Pablo Posted August 25, 2009 Author Share Posted August 25, 2009 I know it's possible using ODBC connection, but it's not embedded in FM. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 5356 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