How to execute a file containing mysql code in Matlab?

Hi,
Is to possible to execute a MySQL code file in Matlab? I would like to do something like: exec(conn,SOURCE myfile.sql )
where myfile.sql is a file containing some mysql code (e.g. code to create tables, upload data...).
Thanks for your help

Antworten (1)

the cyclist
the cyclist am 7 Aug. 2015

1 Stimme

If you have the Database Toolbox installed, you can use the runsqlscript function.

Produkte

Gefragt:

am 6 Aug. 2015

Beantwortet:

am 7 Aug. 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by