How to execute a file containing mysql code in Matlab?

조회 수: 1 (최근 30일)
Lorette
Lorette 2015년 8월 6일
답변: the cyclist 2015년 8월 7일
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