Oracle sql 去除重复 和 字段去除空格
发布时间:2020-12-12 16:14:52 所属栏目:百科 来源:网络整理
导读:1.去除重复两种方式 1.1distinct 函数 select distinct userid from projectinfo where projecttype in (select id from p_fundcategory where departid = 21 and parentid !=0) 1.2 group by 也可以 select userid,count(userid) from projectinfo where pr
1.去除重复两种方式 1.1distinct 函数 select distinct userid from projectinfo where projecttype in (select id from p_fundcategory where departid = 21 and parentid !=0) 1.2 group by 也可以 select userid,count(userid) from projectinfo where projecttype in (select id from p_fundcategory where departid = 21 and parentid !=0) group by userid
函数ltrim左边空格 函数rtrim右边空格 两个函数联合使用ltrim(rtrim(name)) 就可以了 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |