skip to main
|
skip to sidebar
小明的程式記事本
SQL取出序號
2010年6月1日 星期二
之前在寫sql語法時,需要用到序號這種東西,今天同事分享了用法。
select row_number() over (order by pk ) as NO, * from tablename
0 意見:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
搜尋此網誌
熱門文章
Procedure傳入array參數範例 in Oracle
以下為Procedure傳入array參數範例: Procedure部份 create or replace PACKAGE PKG_TEST AS TYPE NUMBER_ARRAY IS TABLE OF number INDEX BY BINARY_INTEGER; ...
遇到的Oracle錯誤訊息筆記
錯誤訊息為: -------------------------------------------------------------------------------------------------------------------------- ORA-0...
用sql語法檢視TABLE大小
declare @id int declare @type character(2) declare @pages int declare @dbname sysname declare @dbsize dec(15,0) declare @bytesperpage ...
最新文章
線上翻譯
現在時間
常用網站
Convert
MSDN邊學邊做
mis2000lib ASP.NET教學
小朱® 的技術隨手寫
W3C Schools
Service.Endcode的網站
C# 程式設計手冊
訂閱
發表文章
Atom
發表文章
留言
Atom
留言
文章分類
c#
(33)
SQL
(16)
javascript
(16)
ASP.NET
(12)
Oracle
(5)
Linq
(3)
blog
(3)
jQuery
(3)
Store Procedure
(2)
TDD
(2)
VMware
(2)
VisualStudio
(2)
Windows
(2)
XSLT
(2)
report service
(2)
(Chrome)Extensions
(1)
(VS)Extensions
(1)
Br
(1)
DesignPattern
(1)
Json
(1)
Validator
(1)
XP
(1)
css
(1)
git
(1)
html
(1)
好用工具
(1)
心情日誌
(1)
站台
(1)
網誌存檔
►
2017
(6)
►
11月
(2)
►
10月
(1)
►
4月
(1)
►
2月
(1)
►
1月
(1)
►
2016
(8)
►
12月
(1)
►
11月
(2)
►
5月
(4)
►
3月
(1)
►
2015
(12)
►
12月
(2)
►
10月
(1)
►
8月
(1)
►
7月
(1)
►
6月
(1)
►
3月
(1)
►
1月
(5)
►
2014
(19)
►
10月
(5)
►
9月
(7)
►
8月
(2)
►
6月
(1)
►
5月
(1)
►
4月
(1)
►
2月
(1)
►
1月
(1)
►
2013
(23)
►
12月
(1)
►
11月
(3)
►
10月
(3)
►
9月
(2)
►
7月
(1)
►
6月
(3)
►
5月
(4)
►
4月
(1)
►
3月
(2)
►
2月
(2)
►
1月
(1)
►
2012
(36)
►
12月
(3)
►
11月
(1)
►
10月
(2)
►
8月
(6)
►
7月
(3)
►
6月
(4)
►
5月
(8)
►
4月
(4)
►
3月
(3)
►
2月
(2)
►
2011
(10)
►
12月
(3)
►
10月
(2)
►
9月
(2)
►
8月
(1)
►
5月
(1)
►
1月
(1)
▼
2010
(11)
►
10月
(2)
►
9月
(1)
►
8月
(1)
►
7月
(2)
▼
6月
(2)
如何在SQL2008將既有的table及資料產生srcipt語法匯出
SQL取出序號
►
4月
(1)
►
2月
(1)
►
1月
(1)
►
2009
(9)
►
12月
(1)
►
10月
(3)
►
9月
(5)
0 意見:
張貼留言