// 特定の内容のビューを何度も利用することになるので、 // ビュー自体に名前を付けておく dbConnection.executeSimpleSQL(.toString()); var statement = dbConnection.createStatement(.toString()); try { statement.bindStringParameter(0, 'http://www.mozilla.org/'); while (statement.executeStep()) { var title = statement.getString(0); var url = statement.getString(1); alert(title+'\n'+url); } } finally { statement.reset(); } // 処理が完了したら、必要に応じてビューを削除する // dbConnection.executeSimpleSQL( // 'DROP VIEW historyvisits_and_places');