📜  哪个在数据库中占用更多空间日期时间或单独的日期和时间列? - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:10.939000             🧑  作者: Mango

代码示例1
/* If you have need of both a date and time, it is usually better to use a 
   datetime datatype. It makes most queries slightly easier by not having
   to combine data from different columns to get a particular moment.
   
   It visually takes up less space in a DB, and it is also more common 
   practice, so has wider support.
   
   Exceptions include when legacy support is needed for separate fields.   */