PDF(美国Ltr)- 2.4 mb
PDF (A4)- 2.4 mb
TableUpdate:集
添加要更新的字段
描述
公共mysql_xdevapi \ TableUpdatemysql_xdevapi \ TableUpdate:集(字符串table_field,
字符串expression_or_literal);
更新表中记录的列值。
参数
-
table_field
-
要更新的列名。
-
expression_or_literal
-
要在指定列上设置的值。
返回值
TableUpdate对象。
例子
例5.188mysql_xdevapi \ TableUpdate:集
例子
<?php $session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");$session = $session- getSchema("addressbook");$table = $schema-> getttable ("names");res =美元表- >更新()- >设置(“水平”,3)- >(> 15岁和< 22岁)-(4)- > >限制orderby([年龄asc, '名字desc ']) - >执行();? >