久久久久久久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?什么時候不能投射為日期?)
主站蜘蛛池模板: 久久国产欧美日韩精品 | 日本精品一区二区三区四区 | 国产免费一区二区 | 国产做a爱免费视频 | 国产日韩一区二区 | 亚洲第一网站 | 午夜在线免费观看 | 国产一二三区免费视频 | 99热这里| 久久久久久99 | 成人综合视频在线观看 | 欧美最猛性xxxxx亚洲精品 | 国产综合久久 | 久久网站免费视频 | 天天看天天摸天天操 | 久婷婷 | 波多野结衣精品 | 99伊人网| 偷偷操视频 | 国产精品一区在线观看 | 久久不射网 | 欧美 日韩 亚洲91麻豆精品 | 国产日韩欧美中文字幕 | 在线观看av网站永久 | 久久国产综合 | 91大神在线资源观看无广告 | 亚洲国产精品99久久久久久久久 | 成人黄色电影在线观看 | 久久综合伊人一区二区三 | 男女污网站 | 欧美福利久久 | 韩国久久 | 亚洲成人网在线播放 | 欧美日高清视频 | 久久久久国产一区二区三区 | 国产精品国产a | 亚洲一在线| 国产yw851.c免费观看网站 | 久久综合成人精品亚洲另类欧美 | 91精品国产91久久久久久丝袜 | www国产精品 |