講解七種資料庫中Select Top的使用方法

2021-05-22 16:58:50 字數 769 閱讀 9472

select top在不同資料庫中的使用用法:

1. oracle資料庫

select * from table1 where rownum<=n

2. infomix資料庫

select first n * from table1

3. db2資料庫

select * row_number() over(order by col1 desc) as rownum where rownum<=n

或者

select column from table fetch first n rows only

4. sql server資料庫

select top n * from table1

5. sybase資料庫

set rowcount n 

goselect * from table1

6. mysql資料庫

select * from table1 limit n

7. foxpro資料庫

select * top n from table order by column

講解七種資料庫中Select Top的使用方法

select top在不同資料庫中的使用用法 1.oracle資料庫 select from table1 where rownum n 2.infomix資料庫 select first n from table1 3.db2資料庫 select row number over order by ...

redis的七種資料結構

it168 技術 長生劍 孔雀翎 碧玉刀 多情環 離別鉤 霸王槍 拳頭是古龍筆下的七種 而本文打算將redis的幾種使用方式 strings hashs lists sets sorted sets pub sub transactions 也比作七種 為大家講解redis的七種特性,並列舉其適合的...

js的第七種資料型別Symbol

概述symbol是es6中新增的js的基礎資料型別,我們可以把它理解成類似字串,但是它的值是獨一無二的 一旦建立後,無法找到另乙個值與它相等 通常我們可以用它做物件的屬性建立乙個symbol值symbol沒有字面量形式,同時因為它是普通型別也不能用new來生成。通常我們可以用全域性函式 symbol...