0
select * from table where id = 3;
,但我想也使上一列的变换,所以是这样的:
select replace(aaa, 'a', 'b'), * from table where id = 3;
但这不起作用。有人知道吗?
select * from table where id = 3;
,但我想也使上一列的变换,所以是这样的:
select replace(aaa, 'a', 'b'), * from table where id = 3;
但这不起作用。有人知道吗?
这应该工作:
select replace(aaa, 'a', 'b'), t.* from table t where id = 3;
的原因是因为asterisk
*
替换操作之后来到,尝试交换它,它会正常工作,
select *,
replace(aaa, 'a', 'b')
from `table`
where id = 3;