-- Added the weekly times of the month and year of the date!-- Sunday is counted as "last week "! (Note the differences between weekofyear, weekofmonth, myweekofyear, and myweekofmonth)-- Note that the datename value varies depending on the SQL
I. Annual ENQUIRY Enquiry data for the yearSELECT * fromblog_articleWHERE Year(From_unixtime (Blogcreatetime))= Year(Curdate ()) Second, query quarterly data query data with quarter numberSELECTArticleID, Quarter (from_unixtime (' Blogcreatetime ')
Data that is often stored in the datetime format of SQL Server is sometimes, minute, second, and so on. However, when the page is read, the notification only requires year, month, and day, You can use the following method to read data from the
When searching for the membership management system today, I found that the previous search time method was not scientific, and the efficiency was not too high. the time format "14:32:12" is saved in the database when the specified query time is
Oracle-based SQL Optimization MethodologyThe ultimate goal of SQL Optimization in Oracle databases is to shorten the execution time of target SQL statements. To achieve the above purpose, we usually have the following three methods to choose from:1.
Server
1.1. SQL Server development process
SQL Server is a relational database management system for Microsoft Company, but it has to start with Sybase in terms of its history. SQL Server was developed from the late the 1980s, the earliest
Author: chenbin (Redguardtoo)Version number: 20160125Update time: Original time: Copyright: This article is licensed under the following agreement, free reprint-non-commercial-non-derivative-retain attribution | Creative Commons by-nc-nd 3.0,
Create a PL/SQL block to calculate the compensation amount for one year.Requirements2 Pass the annual payroll and annual bonus ratios to PL/SQL blocks by using an *plus substitution variableThe 2 bonus ratio is an integer that is converted to a
Author: chenbin (Redguardtoo)Version number: 20150424Update time: Original time: Copyright: This article is licensed under the following agreement, free reprint-non-commercial-non-derivative-retain attribution | Creative Commons by-nc-nd 3.0,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.