function somareg(){ var url = 'jdbc:mysql://'+server+':'+port+'/'+dbName; var conn = Jdbc.getConnection(url, username, password); const stmt = conn.createStatement(); const guarda = stmt.executeQuery("SELECT SUM(valor) FROM registos"); guarda.next(); Logger.log(guarda.getDouble(1)); //This is what I was looking for... }
1条答案
按热度按时间zzlelutf1#
很抱歉让你误会了。在此期间,我设法得到了解决方案,从来没有想到它可以这么简单:谢谢奥克塔维奥。