平时少用到的sql query
生活随笔
收集整理的這篇文章主要介紹了
平时少用到的sql query
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
查找第三個字符是'i'的結果:
select col_1 from tab_1 where col_1 like '__i%';
?
查找在1到7之間的結果:
select col_1 from tab_1 where col_1 between 1 and 7;
?
在where中使用select語句:
select col_1 from tab_1 where col_2 = (select count(*) from tab_2);
?
組合表查詢:
select tab_1.col_1, tab_2.col_1, col_2 from tab_1, tab_2 where tab_1.col_1 = tab_2.col_1;
?
總結
以上是生活随笔為你收集整理的平时少用到的sql query的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用 Oracle GoldenGate
- 下一篇: Oracle中启动和关闭的各种方式