本文介绍了在数据库中,日期以时间戳格式存储,而获取时我需要获取具有给定条件的记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 在数据库中,日期以时间戳格式存储,在获取时我需要获取具有给定条件的记录,例如。 选择 * 来自项目其中​​周(enddate)= 6 和年(enddate)= 2013 它无法正常工作。请帮我比较和获取记录。解决方案 In database, date is stored in timestamp format, while fetching I need to fetch the records with given condition like.select * from projects where week(enddate) = 6 and year(enddate) = 2013Its not working. Please help me how to compare and fetch the records. 解决方案 这篇关于在数据库中,日期以时间戳格式存储,而获取时我需要获取具有给定条件的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-03 09:28