oracle精确查询和模糊查询实例代码
本篇内容主要讲解“oracle精确查询和模糊查询实例代码”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“oracle精确查询和模糊查询实例代码”吧!
精确查询:
SELECT
d.ACCOUNT_ as ACCOUNT_,
t.ID_,t.NAME_,t.PROFILE_,t.STATUS_,t.GENDER_,t.EMAIL_,t.ADDRESS_,t.MOBILE_,t.QQ_,t.WC_ACCOUNT_,t.PHOTO_,t.POSITIONS_,t.GROUP_ID_,t.CREATE_TIME_,t.UPDATE_TIME_,t.ORGID
FROM IBPS_PARTY_EMPLOYEE t
LEFT JOIN Ibps_Party_User d ON t.ID_ =d.ID_
WHERE GENDER_ = 'male'
ORDER BY ID_ DESC
模糊查询:
SELECT
d.ACCOUNT_ as ACCOUNT_,
t.ID_,t.NAME_,t.PROFILE_,t.STATUS_,t.GENDER_,t.EMAIL_,t.ADDRESS_,t.MOBILE_,t.QQ_,t.WC_ACCOUNT_,t.PHOTO_,t.POSITIONS_,t.GROUP_ID_,t.CREATE_TIME_,t.UPDATE_TIME_,t.ORGID
FROM IBPS_PARTY_EMPLOYEE t
LEFT JOIN Ibps_Party_User d ON t.ID_ =d.ID_
WHERE GENDER_ like '%male%'
ORDER BY ID_ DESC
到此,相信大家对“oracle精确查询和模糊查询实例代码”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!