asp.net游戏网站的SQL DB表设计 [英] SQL DB table design for asp.net gaming site
问题描述
我需要一些帮助来找到设计发布日期表的最佳方法。我正在使用asp.net和SQL创建一个游戏信息站点。我已经尝试过看起来像这样的表设计(ExactReleaseDate,RoughReleaseDate),但我无法让它工作。以下是我计划使用的不同格式。此外,其中一个挑战是按发布日期最近的日期排序:
05-12-2013
Q1 - 2013
2009年中期
夏季-2015
TBA
你有吗关于如何处理不同日期的任何想法?
I need some help finding the best way of designing the release dates table. I am creating a game information site using asp.net and SQL. I’ve experimented with table design that looks like this (ExactReleaseDate, RoughReleaseDate) , but I just can’t get it to work. Here are the different formats I plan on using. Also, one of the challenges is sorting by date that is nearest to the release date:
05-12-2013
Q1 - 2013
Mid-2009
Summer-2015
TBA
Do you have any ideas on how to deal with the different dates?
推荐答案
检查一下,它可以帮到你
http://mrbool.com/working-with-dates-and-conversions-in-the-sql-server/7257 [ ^ ]
这篇关于asp.net游戏网站的SQL DB表设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!