久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

插入后 24 小時刪除記錄

Delete record 24 hours after insert(插入后 24 小時刪除記錄)
本文介紹了插入后 24 小時刪除記錄的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

有沒有辦法在 Transact-SQL 中創建行 24 小時后自動刪除行?

Is there a way to automatically delete a row 24 hours after its creation in Transact-SQL?

我正在制作一個網站(學習體驗),用戶在注冊后需要單擊通過電子郵件發送的驗證鏈接.我希望用戶在 24 小時內驗證自己.

I'm making a site (learning experience) where the user needs to click a validation link sent by e-mail once they register. I want the users to validate themselves within 24 hours.

我想我需要的是觸發器,但我真的不確定語法,甚至不確定是否可能.

I suppose what I'd need is a trigger, but I'm really not sure on the syntax, nor if it is even possible.

推薦答案

我不確定您的架構,但我會采用不同的方式.我將針對與驗證鏈接相對應的數據庫記錄有一個日期/時間.當他們單擊該鏈接時,請驗證數據庫記錄的日期和時間是否在當前時間的 24 小時內.如果是,則允許,否則拒絕.

I'm not sure of your schema but I would do it a different way. I would have a date/time against the database record that corresponds to the validation link. When they click the link, verify that the date and time of the database record is within 24 hours of the current time. If so, allow it, otherwise reject it.

這篇關于插入后 24 小時刪除記錄的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Modify Existing decimal places info(修改現有小數位信息)
The correlation name #39;CONVERT#39; is specified multiple times(多次指定相關名稱“CONVERT)
T-SQL left join not returning null columns(T-SQL 左連接不返回空列)
remove duplicates from comma or pipeline operator string(從逗號或管道運算符字符串中刪除重復項)
Change an iterative query to a relational set-based query(將迭代查詢更改為基于關系集的查詢)
concatenate a zero onto sql server select value shows 4 digits still and not 5(將零連接到 sql server 選擇值仍然顯示 4 位而不是 5)
主站蜘蛛池模板: 日韩在线中文 | 免费成人在线网 | 日韩 国产 在线 | 欧美在线国产精品 | 欧美日韩在线视频一区 | 午夜免费精品视频 | 中文字幕在线观看一区 | 天天碰日日操 | 精品日韩一区二区 | 国产精品视频免费观看 | 狠狠干网站 | 一区二区三区在线 | 欧美一区二区在线视频 | 亚洲午夜精品视频 | 青青草原精品99久久精品66 | 另类在线| 欧洲色综合 | 午夜影院在线视频 | 日韩欧美国产精品 | 91久久电影 | 日本手机看片 | 涩涩视频网站在线观看 | 成人av一区二区三区 | 成人一级片在线观看 | 国产精品自拍视频 | 欧美炮房 | 亚洲精品一区二区三区中文字幕 | 视频一区二区在线观看 | 精品久久久久久国产 | 久久国产区 | 一区二区三区在线播放 | 国产1区| 亚洲一区电影 | 欧洲妇女成人淫片aaa视频 | 羞羞视频网站在线观看 | 视频一二三区 | 日产精品久久久一区二区福利 | 激情网站在线观看 | 午夜精品在线观看 | 天天干天天想 | 国产网站在线免费观看 |