如何插入一些与其 id 连接的值,即
UPDATE `hosting`.`invoice` SET `invoice_no` = 'wb/1420/'+'invoice_id
WHERE `invoice`.`invoice_id` != 38;
如何插入一些与其 id 连接的值,即
UPDATE `hosting`.`invoice` SET `invoice_no` = 'wb/1420/'+'invoice_id
WHERE `invoice`.`invoice_id` != 38;
使用mysql的concat
功能
UPDATE `hosting`.`invoice` SET `invoice_no` = CONCAT('wb/1420/', invoice_id)
WHERE `invoice`.`invoice_id` != 38;
尝试像这样使用
$value = 'wb/1420/'.invoice_id;
UPDATE hosting.invoice SET invoice_no =$value WHERE invoice.invoice_id != 38;