UPDATE tb
SET TableName = (
SELECT
concat ('tbl_', TableName)
FROM
tbl_site
WHERE
id = tb.id
)
SET TableName = (
SELECT
concat ('tbl_', TableName)
FROM
tbl_site
WHERE
id = tb.id
)
from tbl_site tb
update语句起别名写法
from tbl_site tb
update语句起别名写法