討論串[SQL ] 大量刪除資料的問題
共 5 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者clubflymf (clubfly)時間16年前 (2009/06/09 16:48), 編輯資訊
0
0
0
內容預覽:
硬是要用 sql 做出來的話.... 似乎有一點難度... $sql = "select id,. url_id. from url_detail_history. where url_id in (. select url_id. from fx01. group by url_id. havin
(還有1062個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者roga (凝視)時間16年前 (2009/06/09 15:44), 編輯資訊
0
0
1
內容預覽:
解出來了,結果還是得用 PHP 來幫忙一下... $sql = "SELECT `url_id`, count( url_id ) FROM `url_detail_history` GROUP BY `url_id` HAVING count(id) > 1499;";$result = mysq
(還有761個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者slalala (X票已賣出 別騷擾我啦= =)時間16年前 (2009/06/09 03:34), 編輯資訊
0
0
1
內容預覽:
java的作法(寫個大概). Connection con1 = DriverManager.getConnection(uri,name,password);. Connection con2 = DriverManager.getConnection(uri,name,password);. c
(還有517個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者bobju (寶貝豬)時間16年前 (2009/06/09 02:11), 編輯資訊
0
0
1
內容預覽:
//1 先檢查url_id有沒有設索引? 有設沒設差很多.. 設好索引後... //2 先把筆數超過N筆的url找出來:. $link=資料庫連線();. $sql=". select url_id,count(*) as count. from url_detail_history. group
(還有444個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者roga (凝視)時間16年前 (2009/06/09 01:20), 編輯資訊
0
0
0
內容預覽:
環境介紹:使用 DB 是 MySQL. 資料表結構:. url_detail_history 資料表. +--------------+---------------------+------+. | Field | Type | Null |. +--------------+----------
(還有1008個字)
首頁
上一頁
1
下一頁
尾頁