Zend framework Zend如何使用自己的表字段值更新表值
如何在Zend DB表上执行此操作?像Zend framework Zend如何使用自己的表字段值更新表值,zend-framework,zend-db-table,Zend Framework,Zend Db Table,如何在Zend DB表上执行此操作?像 UPDATE location AS main SET main.parent_location = 28, main.description = CONCAT( (SELECT sub.description FROM wms_location AS sub WHERE sub.id_location=28), main.designation ) WHERE main.id_locat
UPDATE location AS main
SET main.parent_location = 28,
main.description = CONCAT(
(SELECT sub.description FROM wms_location AS sub WHERE sub.id_location=28),
main.designation
)
WHERE main.id_location in (11, 14);
这可能吗
$table->update(
"parent_location" => new Zend_Db_Expr(
"CONCAT(" . (string)$subSelect . ", designation)"
),
"id_location IN(11, 14)"
);
我不确定这些别名是否可能,是否需要它们