[SQL]為查詢的結果加上序號(ROW_NUMBER,RANK,OVER)
SQL:
Select ROW_NUMBER() OVER(ORDER BY Schedule_Date_Time Desc) as [序號],*
From (Select Schedule_No,Schedule_Date_Time From TBL_Production_Schedule ) As A
查詢結果:
序號 Schedule_No Schedule_Date_Time
1 S114100005 20140122133559
2 S114900002 20140122133559
3 S113900007 20130924105820
4 S113900006 20130924102647
[VB6] vbCrLf 換行
關於VB2005 裡面的vbnewline和vbtab
CSS cursor Property
0 留言