函数名:cubrid_seq_put()
函数描述:该函数用于往指定序列对象中插入新的元素。
用法: cubrid_seq_put(resource $seq, mixed $element[, int $index = -1]) : bool
参数:
返回值:成功插入返回 true,失败返回 false。
示例:
// 初始化序列
$seq = cubrid_seq_init($conn, $oid);
// 插入新元素到序列末尾
$cubrid_seq_put($seq, 'new element');
// 输出序列
$cubrid_seq_export($seq);
// 初始化序列
$seq = cubrid_seq_init($conn, $oid);
// 插入新元素到指定索引位置
$cubrid_seq_put($seq, 'new element', 2);
// 输出序列
$cubrid_seq_export($seq);
注意事项: