怎样给带distinct的查询结果加上字符串?
我的查询语句是这样的
select distinct customer_code from purchase_customer_balance order by customer_code
select distinct '@'+customer_code'#' from purchase_customer_balance order by customer_code
select distinct '@'+customer_code+'#' from purchase_customer_balance order by customer_code
[解决办法]
select distinct '@'+customer_code + '#' from purchase_customer_balance order by 1or :select distinct '@'+customer_code + '#' from purchase_customer_balance order by '@'+customer_code + '#'
[解决办法]
SELECT DISTINCT '@' + customer_code + '#'FROM purchase_customer_balanceORDER BY '@' + customer_code + '#'
[解决办法]
select distinct '@'+customer_code'#' from purchase_customer_balance order by '@'+customer_code'#'