当前位置:网站首页>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
边栏推荐
- Experiment 1, experiment 2 and Experiment 3 of assembly language and microcomputer principle: branch program design / loop program design / subroutine design
- Box model (2)
- LabVIEW develops PCI-1680U dual port can card
- 【集训DAY13】Internet【并查集】
- [training Day11] Calc [mathematics]
- JD quick navigation box
- 1000 okaleido tiger launched binance NFT, triggering a rush to buy
- Today, learn about the use of lists, hyperlinks, image tags, and audio and video
- [training Day12] tree! Tree! Tree! [greed] [minimum spanning tree]
- According to the use and configuration of data permissions in the open source framework
猜你喜欢

Two methods of printing strings in reverse order in C language

Simple setting method of search box

Share two music playing addresses
![[training day15] good name [hash]](/img/62/5cd354e63aab861bf8fa1f265b6986.png)
[training day15] good name [hash]

自媒体人必备的4个资源工具,每一个都很实用

According to the use and configuration of data permissions in the open source framework

ML-Numpy

Qt的TQTreeWidget控件

关于getchar和scanf的使用示例及注意点

Pyspark data analysis basis: pyspark.sql.sparksession class method explanation and operation + code display
随机推荐
【集训DAY15】油漆道路【最小生成树】
If jimureport building block report is integrated according to the framework
Compiler introduction
【集训DAY12】Bee GO!【动态规划】【数学】
ECMA 262 12 Lexical Grammer
分享两个音乐播放地址
【集训DAY11】Nescafe【贪心】
Domain oriented model programming
【集训DAY15】简单计算【树状数组】【数学】
对需求的内容进行jieba分词并按词频排序输出excel文档
ECMA 262 12 Lexical Grammer
贴片微型滚珠振动开关的结构原理
Perform Jieba word segmentation on the required content and output EXCEL documents according to word frequency
1000 okaleido tiger launched binance NFT, triggering a rush to buy
[training Day12] x equation [high precision] [mathematics]
【PMP学习笔记】第1章 PMP体系引论
Vodak software: Smart City solution
【集训DAY13】Travel【暴力】【动态规划】
【MySQL提权】UDF提权(附带大马)
QT的Tree View Model示例