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

SQL Server 日數據類型?

SQL Server day datatype?(SQL Server 日數據類型?)
本文介紹了SQL Server 日數據類型?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我正在為處理調度和處理重復事件的應用程序創建一個表.我需要指出事件可能在哪些日期和時間再次發生(例如,每周一和周三下午 1 點).是否有一種數據類型可以在不輸入特定日期的情況下只處理一周中的幾天,或者我是否需要創建另一個包含一周中的幾天的表并用 FK 引用這些?這顯然是不可取的,因為它會使處理在午夜之前開始并在午夜之后結束的事件變得更加復雜.

I am creating a table for an application that handles scheduling and deals with recurring events. I need to indicate which days and times an event may recur on (eg. every Monday and Wednesday at 1pm). Is there a datatype that can handle only days of the week without inputting specific dates, or will I need to create another table containing days of the week and reference these with a FK? This is obviously undesirable because it will make handling events that start before midnight and end after midnight more complex.

推薦答案

在星期幾使用 smallint.

Use a smallint for the Day of Week.

如果您使用的是 SQL Server 2008,則有一個新的time 時間列的數據類型,否則您仍然需要使用日期時間數據類型.

If you are using SQL Server 2008, there is a new time datatype for the time of day column, otherwise you will still need to use a datetime datatype.

這篇關于SQL Server 日數據類型?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

What SQL Server Datatype Should I Use To Store A Byte[](我應該使用什么 SQL Server 數據類型來存儲字節 [])
Interpreting type codes in sys.objects in SQL Server(解釋 SQL Server 中 sys.objects 中的類型代碼)
Typeorm Does not return all data(Typeorm 不返回所有數據)
Typeorm .loadRelationCountAndMap returns zeros(Typeorm .loadRelationCountAndMap 返回零)
How to convert #39;2016-07-01 01:12:22 PM#39; to #39;2016-07-01 13:12:22#39; hour format?(如何將“2016-07-01 01:12:22 PM轉換為“2016-07-01 13:12:22小時格式?)
MS SQL: Should ISDATE() Return quot;1quot; when Cannot Cast as Date?(MS SQL:ISDATE() 是否應該返回“1?什么時候不能投射為日期?)
主站蜘蛛池模板: 一区二区在线不卡 | 日韩精品 电影一区 亚洲 | www.免费看片.com | 日韩黄色免费 | 国产精品亚洲一区 | 欧美日韩国产一区二区三区 | 男人的天堂在线视频 | 欧美偷偷| 成年人视频在线免费观看 | 欧美日韩在线观看一区二区三区 | 国产精品久久久久久久三级 | 日韩精品在线免费观看视频 | 国产欧美日韩二区 | 精品久久久网站 | 国产欧美一区二区三区久久 | 日韩av电影院 | 久久首页 | 日本在线观看网址 | 一区二区av | 亚洲精品中文字幕在线观看 | 日韩一区二区免费视频 | 视频一区二区中文字幕 | 亚洲欧美在线一区 | 久久久久国产精品免费免费搜索 | 欧美1—12sexvideos| 国产精品日韩在线 | 欧美一级艳情片免费观看 | 亚洲在线免费观看 | 一级免费毛片 | 日韩a| 亚洲精品免费观看 | 久久国产成人精品国产成人亚洲 | 91精品一区二区三区久久久久 | 久久精品手机视频 | 91社区视频 | 国产精品污www一区二区三区 | 蜜桃av一区二区三区 | 亚洲精品v日韩精品 | 成人在线视频看看 | 色天堂视频 | 日本高清不卡视频 |