1.concat CONCAT(字串1, 字串2, 字串3, ...): 将字串1.字串2.字串3,等字串连在一起. 例如: Geography 表格 region_name store_name East Boston East New York West Los Angeles West San Diego 例子1: MySQL/Oracle: SELECT CONCAT(region_name,store_name)…
一般的Like用法: SELECT U_NAME FROM T_USER WHERE U_NAME LIKE '%A%' 但是,我此次like关键字后面的对应值是一个变量,需要用select语句来实现,用了CONCAT 关键字,将select到的结果与“%”连接起来,才得以实现所需功能,如下所示: SELECT U_NAME FROM T_USER WHERE U_NAME LIKE CONCAT('%',CONCAT((SELECT STUDENT_NAME FROM T_CLASS WHER…