How to catch a result of script step [Execute SQL - SELECT...] into FileMaker field?

I succesfuly connected my FileMaker Pro 8,5 Adv or 9 with MySQL server.
I can thru script "Execute SQL" make INSERT, UPDATE, DELETE on MySQL server.
I need read data from MySQL server by using SELECT statement in "Execute SQL" script.
Where in FileMaker is result of this (SELECT) statement?
How can I write result into FileMaker field or variable?

(I know about Import Record Script step, but I want use Execute SQL script step.)
karel777Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lesouefCommented:
this is an exception in the FM/sql stuff, you should use the ODBC source in the import function to insert your query.
file/import/odbc > you'll get a wizard, but you can type your query manually; you will have to match imported records with those of a local table.
note that using v9, you can declare the odbc source as an external data source, create a table occurence in your relationship graph, then a layout for it, then find records as local data from there. much easier than using SQL.
Just watch for large tables, FM finds * when you first display the layout of a table, and if the SQL source is 500000 lines, it might be lengthy, so better issue a search before showing the layout.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
FileMaker Pro

From novice to tech pro — start learning today.