I want to do something like:
Code: Select all
//variable "test" is a CSV string
text = Global.GetVar("test");
array = text.split(",")
array_length = array.length
for (i=0, i < array_length, i++) {
var name_tmp = array[i];
Global.DataBase.Query(INSERT INTO table1 (name) VALUE (name_tmp);
}