龍巖易富通網(wǎng)絡(luò)科技有限公司
龍巖小程序開發(fā),龍巖分銷系統(tǒng)
SELECT * FROM `myvigo`.`0597dns_goods` where store_id=74 OR CONCAT(',', store_id2, ',') LIKE '%,74,%' ;
舉個(gè)例子 select concat('aa','bb');
最終顯示的就是 aabb,同時(shí),concat有 to_char的作用,就是把其他類型轉(zhuǎn)成varchar類型的
閩ICP備11017913號(hào)-1 | Copyright © 2008-2016, 龍巖市易富通網(wǎng)絡(luò)科技有限公司 , All Rights Reserved.
發(fā)表評(píng)論