On Tuesday, 8 December 2015 at 15:14:06 UTC, Daniel Kozak wrote:
[...]
>> A nested loop, did not worked either:
>>
>> foreach(row;rows){
>> foreach(field;row){
>> writeln(field);}
>> }
[...]
Now I took a work around, getting the field names in a separate
mysql-request,
but they should be avai
V Tue, 08 Dec 2015 14:34:53 +
Martin Tschierschke via Digitalmars-d-learn
napsáno:
> On Monday, 7 December 2015 at 16:11:19 UTC, Daniel Kozak wrote:
> > On Monday, 7 December 2015 at 14:40:12 UTC, Martin Tschierschke
> > wrote:
> >> When I do the following:
> >>
> >> auto mysql = new Mysql
V Tue, 08 Dec 2015 14:34:53 +
Martin Tschierschke via Digitalmars-d-learn
napsáno:
> On Monday, 7 December 2015 at 16:11:19 UTC, Daniel Kozak wrote:
> > On Monday, 7 December 2015 at 14:40:12 UTC, Martin Tschierschke
> > wrote:
> >> When I do the following:
> >>
> >> auto mysql = new Mysql
On Monday, 7 December 2015 at 16:11:19 UTC, Daniel Kozak wrote:
On Monday, 7 December 2015 at 14:40:12 UTC, Martin Tschierschke
wrote:
When I do the following:
auto mysql = new Mysql("localhost", 3306, "mt", "",
"verwaltung");
auto rows = mysql.query("select field from my_table limit 50");
f
On Monday, 7 December 2015 at 14:40:12 UTC, Martin Tschierschke
wrote:
When I do the following:
auto mysql = new Mysql("localhost", 3306, "mt", "",
"verwaltung");
auto rows = mysql.query("select field from my_table limit 50");
foreach(row;rows){
writeln(row["field"]);}
// second time same l
On Monday, 7 December 2015 at 14:40:12 UTC, Martin Tschierschke
wrote:
When I do the following:
auto mysql = new Mysql("localhost", 3306, "mt", "",
"verwaltung");
auto rows = mysql.query("select field from my_table limit 50");
foreach(row;rows){
writeln(row["field"]);}
// second time same l
When I do the following:
auto mysql = new Mysql("localhost", 3306, "mt", "", "verwaltung");
auto rows = mysql.query("select field from my_table limit 50");
foreach(row;rows){
writeln(row["field"]);}
// second time same loop
foreach(row;rows){
writeln(row["field"]);}
I only get the output of