将两列合并连接成一列,需要注意的是列的格式必须是NVARCHAR或者VARCHAR类型
1 SELECT ','+Convert(NVARCHAR(30), call_uuid, 0 ) +','+agent_code 2 as PerDateFROM cc_log_call_eco where agent_code='1001'
PerDate | |
1 | ,980408102500000,1001 |
2 | ,980414313125000,1001 |
3 | ,980415770937500,1001 |
4 | ,980416111875000,1001 |