c# ExecuteReader() like function to retrieve a record at a time in matlab

2 次查看(过去 30 天)
hi, I want to read the output of an sql query one record at a time e.g. (ExecuteReader() in c#) so that I can dynamically generate some variables, instead of storing the output then run a for loop.
  2 个评论
Guillaume
Guillaume 2018-9-13
I'm sure the database toolbox has some way to get a cursor that you can read one row at a time. Failing that, you can call .Net code directly from matlab.
However, "so that I can dynamically generate some variables" is never a good idea.
joh
joh 2018-9-13
thanks, but problems do you see with dynamically generated variables? how would you implement it neatly?

请先登录,再进行评论。

回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by