当前位置:网站首页>Oracle query statement summary
Oracle query statement summary
2022-07-25 22:46:00 【ima_ zhan】
// Query the record with a certain field as a certain value
select * from sales where type = ' wallet '
// Fuzzy query
select * from sys_users where name like '% Wu %'
// Go to check again
select distinct type_name, table_name from menuTab;
// Before query 10 strip
select * caseTab where rownum < 10;
// Count the number of different values in a field
select count(distinct(caseType)) from caseTab;
// Count the number of different values in a field
select caseType, count(1) from caseTab group by caseType;
// Left join
select * from caseTab a left join caseTypeTab b on a.id = b.id where caseDt between to_date('2020-07-01 00:00:00','yyyy-mm-dd hh24:mi:ss') and to_date('2020-07-31 00:00:00','yyyy-mm-dd hh24:mi:ss')
// Right join
// And left join similar , The difference lies in the left join Keep all records in the table on the left , Even if there's no match on Items in the condition *** Be careful , The condition here refers to on hinder // And right join Keep the records of the table on the right
边栏推荐
- Vodak software: Smart City solution
- 面向领域模型编程
- 【集训DAY12】树!树!树!【贪心】【最小生成树】
- Short circuit effect of logical operators short circuit and short circuit or
- 贴片微型滚珠振动开关的结构原理
- [database learning] redis parser & single thread & Model
- 1000 okaleido tiger launched binance NFT, triggering a rush to buy
- 软件测试 pytest pytest的命名规则 用例的前后置 conftest.py 定制allure报告 @pytest.mark.parametrize()装饰器作数据驱动
- Qt5.12 installation error prompt: c:\qt5.12.11\vcredist\vcredist_ msvc2019_ x86.exe /norestart /q
- Anaconda~Upload did not complete.
猜你喜欢

单元测试,写起来到底有多痛?

沃达德软件:智慧城市方案

The price of dividing gold bars

We media people must have four material websites, and don't worry about finding materials anymore

【集训DAY15】好名字【hash】

JSON object

DOM event object
![[training day15] simple calculation [tree array] [mathematics]](/img/20/a5604f666ab02f47929f80c5597f0a.png)
[training day15] simple calculation [tree array] [mathematics]
![[training day13] out race [mathematics] [dynamic planning]](/img/94/d86031a062c9311f83d63809492d71.png)
[training day13] out race [mathematics] [dynamic planning]

【集训DAY13】Internet【并查集】
随机推荐
Simulated Xiaomi mall head home page
Five constraints and three paradigms
[MySQL rights] UDF rights (with Malaysia)
沃达德软件:智慧城市方案
QT log file system
新媒体运营策略(以小红书为例)帮助你快速掌握爆款创作方法
我们为什么要推出Getaverse?
Binder原理
【集训DAY11】Calc【数学】
冯诺依曼体系结构
What is the difference between bio, NiO and AIO?
【集训DAY15】简单计算【树状数组】【数学】
力扣解法汇总919-完全二叉树插入器
单元测试,写起来到底有多痛?
Kibana~ the process number cannot be found after kibana is started in the background
Anaconda~Upload did not complete.
JS makes elements get or lose focus
QT Chinese programming encounters c2001 error, prompting "there is a newline character in the constant"
ML-Numpy
【集训DAY12】X equation 【高精度】【数学】