Traditional Culture Encyclopedia - Hotel accommodation - How to intercept the year and month in date-time format
How to intercept the year and month in date-time format
This needs to be converted through convert.
Choice? SUM(BO _ UDDataPickUpReport _ stsfcmain . fin quantity)?
From where? BO _ UDDataPickUpReport _ STSFCMain?
Group? By who? BO _ UDDataPickUpReport _ stsfcmain . cinv code,
CONVERT(VARCHAR(6),BO _ UDDataPickUpReport _ stsfcmain . ddate, 1 12)
In fact, you can see the result.
Choice? Convert (varchar (6), getdate (), 1 12) varchar (6) is the place where the length is limited to the first six digits.
- Related articles
- How to take a bus from Buji Street to Zhonghai Kaili Hotel in Longgang?
- Where do couples travel?
- What are the specialties in Hainan?
- How to get to Maxi from Guangzhou Baiyun Airport?
- Hotels near Wanzhou Gaosheng Tang
- How about Ezhou Yulong Jin Ecological Resort Co., Ltd.
- How about Xi Xi An Sunshine Hotel? Are there any interesting places?
- How to get to Sanniang Bay in Qinzhou, Guangxi
- Which is better, Dongshan Island Hot Spring Hotel?
- Where is the gta5 Temple Hotel?