討論串[SQL ] ACCESS裡的一些
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者tn801534時間18年前 (2007/11/04 09:25), 編輯資訊
0
0
0
內容預覽:
先謝過bc大大喔喔原來可以這樣用瞭了. select 公司,count(distinct 產品). from table. group by 公司. 這段之前打錯OTZ select top 5 *. from table. top語法我在說明文件找到了 原來如此. --. 發信站: 批踢踢實業

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者bcse (Lvx ex Caelis)時間18年前 (2007/11/04 08:26), 編輯資訊
0
0
0
內容預覽:
distinct 放在 count 裡面?. 你是想要這個嗎?. select count(*) from table group by 姓名. 還是這個?. select count(*). from (. select distinct 姓名. from table. ) as table2.
(還有119個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者tn801534時間18年前 (2007/11/03 20:32), 編輯資訊
0
0
0
內容預覽:
ACCESS好像不接受. count(distinct 姓名) 這樣的語法. 還有. select 公司,distinct 產品. from table. group by 公司. 這個好像也不能接受. 他distinct好像只能直接在select後面. 還有要限制輸出幾筆的limit. 像. se
首頁
上一頁
1
下一頁
尾頁