ex ; select concat(region_name,store_name) s from test_b
对单表操作;
Oracle 的 CONCAT( ) 只允许两个参数;不过,在Oracle中,我们可以用 '||' 来一次串连多个字串。
select a.store_name ||a.sales||a.txn_date from table_a a
sqlserver 使用+ 代替||
8、concat(str1,str2)连接多个数据
猜你喜欢
转载自onway417.iteye.com/blog/2192469
今日推荐
周排行