查询给定日期是当年的第几季度sql语句
Jun 07, 2016 pm 05:47 PM查询给定日期是当年的第几季度sql语句
declare @date datetime;
set @date = getdate()
select datepart(quarter,@date) [quarterofyear]; --返回int型
select datename(quarter,@date) [quarterofyear]; --返回varchar型
go

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to search previous Weibo by date on Weibo_How to search previous Weibo by date on Weibo

How to check your academic qualifications on Xuexin.com

12306 How to check historical ticket purchase records How to check historical ticket purchase records

How to remove the date that appears automatically when printing from PPT handouts

How to check the activation date on Apple mobile phone

How to change the date into a pound sign in Excel

Comparison of similarities and differences between MySQL and PL/SQL

PHP date processing tips: How to calculate the month difference between dates using PHP?
