bazziewazzie
Programmer
Hello
I'm very new to unix scripting. But this time I need to have an unix script for my X-code application for Mac OS X. I want to connect to a MySQL database wit my application. The problem is that the results of an Query is like this
+------------+--------+
| column 1 | column 2 |
+------------+--------+
| result 1 | result 3 |
| result 2 | result 4 |
+------------+--------+
I'd like to convert this to something like
{{result 1, result 3}, {result 2, result 4}}
Does anyone know how to do this?
greetings bastiaan
I'm very new to unix scripting. But this time I need to have an unix script for my X-code application for Mac OS X. I want to connect to a MySQL database wit my application. The problem is that the results of an Query is like this
+------------+--------+
| column 1 | column 2 |
+------------+--------+
| result 1 | result 3 |
| result 2 | result 4 |
+------------+--------+
I'd like to convert this to something like
{{result 1, result 3}, {result 2, result 4}}
Does anyone know how to do this?
greetings bastiaan