2
There is no direct way of inserting an array list into a row in mysql. But if you want to insert the names in a single row , then instead of putting them into arraylist you could just save them into a string variable and maybe separate them with a 'character' and then use insert query to save it in Db.
沒有直接的方法將數組列表插入到mysql的行中。但是如果你想在一行中插入名稱,那么你可以將它們保存到一個字符串變量中,而不是將它們放入一個字符串變量中,然后用“字符”將它們分開,然后使用insert查詢將其保存在Db中。
Otherwise you have to make a separate method to convert this this arraylist into a string and then do the above
否則,您必須使用單獨的方法將此arraylist轉換為字符串,然后執行上述操作