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

SQL Server 日數(shù)據(jù)類型?

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

問題描述

限時送ChatGPT賬號..

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

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 時間列的數(shù)據(jù)類型,否則您仍然需要使用日期時間數(shù)據(jù)類型.

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.

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

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

相關(guān)文檔推薦

What SQL Server Datatype Should I Use To Store A Byte[](我應該使用什么 SQL Server 數(shù)據(jù)類型來存儲字節(jié) [])
Interpreting type codes in sys.objects in SQL Server(解釋 SQL Server 中 sys.objects 中的類型代碼)
Typeorm Does not return all data(Typeorm 不返回所有數(shù)據(jù))
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轉(zhuǎn)換為“2016-07-01 13:12:22小時格式?)
MS SQL: Should ISDATE() Return quot;1quot; when Cannot Cast as Date?(MS SQL:ISDATE() 是否應該返回“1?什么時候不能投射為日期?)
主站蜘蛛池模板: 亚洲在线一区二区三区 | 亚洲乱码国产乱码精品精的特点 | 欧美日韩视频在线第一区 | 亚洲狠狠丁香婷婷综合久久久 | 综合九九| 手机在线不卡av | 国产亚洲日本精品 | 国产精品a一区二区三区网址 | 青青久久| 波多野吉衣在线播放 | 亚洲欧美日韩国产综合 | 成人欧美一区二区三区黑人孕妇 | 黄色片视频| h视频在线免费观看 | 婷婷色网 | 成人在线中文字幕 | 玖玖在线精品 | 国产精品一区二区日韩 | 国产成人免费在线 | 无码日韩精品一区二区免费 | 三级成人在线观看 | 国产成人免费 | 国产亚洲一区二区三区 | 久热精品在线播放 | av大片| 日日夜夜天天 | 97精品国产97久久久久久免费 | 国产精品大片 | 日韩黄色av| 亚洲国产黄 | 丁香一区二区 | 久久久美女 | 亚洲国产精品一区二区www | 国产精品精品视频一区二区三区 | 国产成人精品午夜视频免费 | 国产精品国产成人国产三级 | 国产精品激情 | 一区二区三区视频 | 欧美日韩亚洲三区 | 四色永久 | 国产午夜精品久久 |