mozIStorageStatementRow 编辑
This interface has no defined properties, but has properties based on the name of the columns in the SQL result from the statement it was accessed off of. For example, say you create a statement like so:
var statement = dbConn.createStatement("SELECT id, name FROM table_name");
The object would have two properties, id
and name
, that can be used to get the value of the column after you have called mozIStorageStatement.executeStep()
like so:
while (statement.executeStep()) {
let id = statement.row.id;
let name = statement.row.name;
}
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论