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

SQL Anywhere 11.0.1 (中文) » UltraLite - M-Business Anywhere 编程 » UltraLite for M-Business Anywhere API 参考 » ULTable 类

 

setString 方法

使用 String 型设置指定列的值。

语法
setString( UInt16 columnID, String value )
参数
  • columnID   列的 ID 号。表中第一列的 ID 值为 1。

  • value   列的新值。

注释

直到执行插入或更新之后,才实际更改行中的数据;而且在提交之前该更改不是永久更改。

示例

以下语句将第一列的值设置为 abc

t.setString( 1, "abc" );