我有这段代码:
$query = "SELECT DISTINCT CONCAT( p.product_name,' (',a.product_sku,')' ) AS title,
a.virtuemart_product_id , b.virtuemart_category_id ,
p.product_s_desc AS text, b.category_name as section,
a.created_on as created, '2' AS browsernav,
我想将p.product_desc
添加到AS text
部分,因此p.product_s_desc
和 p.product_desc
一起= As text
。< / p>
答案 0 :(得分:1)
您也可以使用 concat
进行尝试select concat(p.product_s_desc, ' ', p.product_desc) as text, ...