Loading...

Mysql最怕就是手賤

Temperature: 0 °C

ChungChung
author_tools

今天手賤了眼盲了@@...

錯把delete當成UPDATE....啃!!今天下午超不順的...

客戶的系統因為誤輸入資料而導致產生7萬多筆錯誤資料而求助...

查詢過後確認共有79556筆誤判資料。

要做的方式是下一個更新的指令來大量更新錯誤的資料欄位為空值....

所以應該是要輸入

UPDATE table SET name='' where name='XXX' and putdate LIKE '%2015-03-17%'

可是卻手賤了眼盲了...竟然下
delete from table where name='XXX' and putdate LIKE '%2015-03-17%'

還確認過沒問題就直接按執行....啊啃...來不及了。

回神,他已經跟說執行完畢...是有沒有這麼快啊,的天!

啃!...還好有備份...嚇死

台北市松山區八德路四段650號 Go

https://innstory.com/story-Mysql最怕就是手賤-337
寫程式筆記

Prev
 花王一匙靈歡馨官網

Next
鯊魚的早餐還不錯 

Nearby Attractions

台北市松山區八德路四段650號-Nearby Attractions

  • 林秀俊墓 Go
  • 陳悅記祖宅(老師府) Go
  • 天母白屋(美軍宿舍) Go
  • 前南菜園日式宿舍 Go
  • 艋舺清水巖祖師廟 Go
  • 機器局第五號倉庫 Go

About the Author

Chung

我是chung
網路工作者
主業是網站系統開發建置
副業是做夢,寫故事
作品請參考/teme.biz
做夢請參考/innstory.com
聯絡/chung.teme@gmail.com

#有人用筆寫日記,有人用歲月寫日記,有人用照片寫日記,而我,用innstory寫日記。

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

定義404頁面

定義404頁面

什麼是頁面? HTTP 或Not Found錯誤訊息是HTTP的其中一種「標準回應訊息」(HTTP狀...

.sql檔過大無法匯入phpMyAdmin

.sql檔過大無法匯入php...

修改phpMyAdmin資料夾中的config.inc.php檔。 打開後找到下列兩行或自行加入: ...

終於,可以好好的呼吸了…

終於,可以好好的呼吸了…

補紀錄~ 5年月日這天,5U迎來了人生第一場國樂個人賽事「全國器樂大賽」。 自加入國樂社以來,我們經...

Recommended reading

Other stories happened at this address

RewriteRule仿靜態連結

RewriteRule仿靜態...

前幾天寫了關於頁面導向位置的定義。https://innst...

意外的客人

意外的客人

今晚,我的水族箱裡來了一位嬌客,【豆娘】... s 我想,牠應該是前幾天去水族店買黑殼蝦時偷渡來的....

行事曆功能導入

行事曆功能導入

cc Innstory有行事曆囉! 我試著把Innstory當作是我的筆記本,將生活發生的故事紀錄下...

HTML5 影音手持裝置適應不良篇

HTML5 影音手持裝置適應...

這天下午跟客戶開完會... 客戶針對專案中手持裝置網站適應性做了需調整的說明..另外還包括影音檔播放...

用distinct在MySQL中查詢多條不重複記錄值

用distinct在MySQ...

select *, count(distinct name) from table group by...

Mysql 查詢時間區間是否包含特定日期

Mysql 查詢時間區間是否...

這其實只是一個簡單的問題,以前並不常用... 但這陣子寫的案子比較偏系統面,這樣的查詢問題變多了@@...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format