如何得到带前缀的数据表名称?
有些复杂的mysql语句,我是自己直接写的。请问有没有办法把设置文件中设置的表前缀加进去?
复杂的语句比如说下面这句
select A.name,A.max_month,B.zong,A.sum from
(select name,max(month) as max_month,sum(xiaoshou) as sum from shujv group by name) A
inner join
shujv B
on CONCAT(A.name,A.max_month) = CONCAT(B.name,B.month)
复杂的语句比如说下面这句
select A.name,A.max_month,B.zong,A.sum from
(select name,max(month) as max_month,sum(xiaoshou) as sum from shujv group by name) A
inner join
shujv B
on CONCAT(A.name,A.max_month) = CONCAT(B.name,B.month)
3 个回复
motecshine - 菜鸟
赞同来自:
我都是 拼凑语法 不知道这样合适不
字母与数字
赞同来自:
mark
赞同来自: