看板
[ Database ]
討論串[SQL ] 大量刪除資料的問題
共 5 篇文章
內容預覽:
硬是要用 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個字)
內容預覽:
解出來了,結果還是得用 PHP 來幫忙一下... $sql = "SELECT `url_id`, count( url_id ) FROM `url_detail_history` GROUP BY `url_id` HAVING count(id) > 1499;";$result = mysq
(還有761個字)
內容預覽:
java的作法(寫個大概). Connection con1 = DriverManager.getConnection(uri,name,password);. Connection con2 = DriverManager.getConnection(uri,name,password);. c
(還有517個字)
內容預覽:
//1 先檢查url_id有沒有設索引? 有設沒設差很多.. 設好索引後... //2 先把筆數超過N筆的url找出來:. $link=資料庫連線();. $sql=". select url_id,count(*) as count. from url_detail_history. group
(還有444個字)
內容預覽:
環境介紹:使用 DB 是 MySQL. 資料表結構:. url_detail_history 資料表. +--------------+---------------------+------+. | Field | Type | Null |. +--------------+----------
(還有1008個字)