久久久久久久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?什么時候不能投射為日期?)
主站蜘蛛池模板: 快播少女爱欢乐 | 国产成人在线免费视频 | 中文在线字幕观看 | 伊人网址 | 亚洲欧洲视频 | 欧美久久久久久久久久 | 亚洲欧美精品一区二区 | 国产福利小视频 | 日本一本在线 | 久久久久91| 国产一区二区三区 | 视频一区二区在线播放 | 户外少妇对白啪啪野战 | 国产午夜一区二区 | 免费看黄色一级片 | xxxx色| 99久久综合 | 国产午夜一区二区 | 欧美在线不卡 | 日韩美女一区二区三区 | 免费在线观看毛片 | 97在线视频观看 | 国产精品黄色片 | 国产日韩欧美综合 | 五月色综合 | 天天操夜夜爽 | 亚洲国产精品久久久 | 九色av| 六月激情 | 狼人色| 国产黄色免费 | 欧美操操操 | 国产蜜臀av | 日本一区二区三区在线视频 | 亚洲国产区 | 日韩免费视频 | 欧美激情一区二区三区 | 欧美日韩国产在线观看 | 日本少妇视频 | 激情网站 | 国产福利在线观看 |