How to execute a file containing mysql code in Matlab?

9 次查看(过去 30 天)
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

回答(1 个)

the cyclist
the cyclist 2015-8-7
If you have the Database Toolbox installed, you can use the runsqlscript function.

类别

Help CenterFile Exchange 中查找有关 Database Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by