skip to main | skip to sidebar

Ryan 記

2008年10月14日 星期二

Distinct

Use Northwind

/*
使用Distinct
*/

--列出客戶所在國家
select distinct Country
from dbo.Customers
--Distinct Country已內含ORDER BY Country asc動作
張貼者: Ryan 於 晚上11:39
標籤: SQL

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

分類

  • FTP
  • Java
  • Microsoft
  • Perl
  • SQL
  • VB

網誌存檔

  • ►  2012 (3)
    • ►  2月 (2)
    • ►  1月 (1)
  • ►  2010 (1)
    • ►  1月 (1)
  • ▼  2008 (30)
    • ►  12月 (1)
    • ▼  10月 (20)
      • Sum
      • Count
      • Except
      • Intersect
      • Union(多個結果集合併)
      • Cross Join(交叉聯結)
      • Self Join
      • Outer Join
      • Inner Join
      • 數學運算式或搭配系統函式
      • Distinct
      • Order By
      • AS
      • NULL
      • In
      • Between ... and ...
      • 邏輯運算子
      • Like
      • 比較運算子
      • Select
    • ►  8月 (4)
    • ►  7月 (1)
    • ►  6月 (2)
    • ►  5月 (2)

關於我自己

Ryan
檢視我的完整簡介