Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » UltraLite - M-Business Anywhere 编程(不建议使用) » UltraLite for M-Business Anywhere 开发 » 使用 SQL 语句进行数据创建和修改

 

ResultSetSchema 对象

使用 ResultSet.schema 属性,您可以检索有关查询中列的信息。

以下示例演示了如何使用 ResultSetSchema 来捕获模式信息。

var I;
var MySchema = rs.schema ;
for ( I = 1; I <= MySchema.columnCount; I++) {
  colname = MySchema.getColumnName(I);
  coltype = MySchema.getColumnSQLType(colname).toString();
  alert ( colname + " " + coltype );
}