討論串[SQL ] 將字串串起來的SQL語法?
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者bero (bero)時間13年前 (2012/08/14 12:07), 編輯資訊
0
0
0
內容預覽:
DECLARE @group TABLE. (. [values] varchar(8000),. [group] int. ). if exists (select * from tempdb.sys.tables t where t.name like '#groups%'). drop tab
(還有533個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者bero (bero)時間13年前 (2012/08/14 11:31), 編輯資訊
0
0
0
內容預覽:
可以考慮用cursor.... --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 210.63.100.2.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者kisha024 (4545454554)時間13年前 (2012/08/14 11:06), 編輯資訊
0
0
0
內容預覽:
各位好. A(no,date). B(no,price,name). int char <-- Type. select B.no,sum(price) from A,B where A.no=B.no group by B.no. 如上語法 sum(price)會把同一group的price加總.
首頁
上一頁
1
下一頁
尾頁