Comparison between MYSQL and MSSQL and MYSQLMSSQL
Recently, I was modifying the MSSQL statements related to a company's product to statements that can be executed on MYSQL.
L Advantage Analysis:
MYSQL is short, easy to use, easy to use, and free
Mysql commonly used date comparison and computing functions, mysql computing functions
Implementation of time comparison in MySql
Unix_timestamp ()
The unix_timestamp function accepts or does not use a parameter.
The return value is an unsigned
MySQL page access statistics and rankings, mysql access statistics rankings
MySQL page access statistics and rankings
Count the number of accessed pages to rank by resolution
SELECT CONCAT(`height` , '*', `width`) AS `resolution` ,
3. mysql Chinese problems, database-level operations, table-level operations, data CRUD, grouping operations, time and date, string-related functions, and table ConstraintsBytes
1. Connect to the MYSQL server: mysql-uroot-p123456
View Chinese
MySQL Date and Time FunctionsMySQL Date and Time Functions
DAYOFWEEK (date)The return date is the day of the week (1 = Sunday, 2 = Monday ,...... 7 = Saturday, ODBC Standard)Mysql> select DAYOFWEEK ('2017-02-03 ');-> 3WEEKDAY (date)Returns the date
String functions1.ASCII (str)Returns the ASCII value of the first character of the string str (str is empty when the string returns 0)SELECT ASCII (' 2 ');->502.ORD (str)If the string str first is a single byte, returns the same value as the ASCII ()
From the previous MySQL database production environment maintenance work, summary of some of the small experience and knowledge, may not be more esoteric, but for us to eliminate hidden dangers, to ensure that the MySQL database production
Description: There is a member table, there is a birthday field, the value is ' YYYY-MM-DD ' format, now to query a time period of the birthday of members, such as ' 06-03 ' to ' 07-08 ' in this time period of all birthday members.
SQL statement:
DAYOFWEEK (date)Returns the day of the Week index (1= Sunday, 2 = Monday, ... 7= Saturday). These index values correspond to the ODBC standard.Mysql> Select DAYOFWEEK (' 1998-02-03 ');3
DayOfMonth (date)Returns the date of the month in the range
1.1 Get the current date + time (date + times) function: Now ()In addition to the now () function to get the current datetime, MySQL has the following function:Current_timestamp () Current_timestampLocalTime () localtimeLocaltimestamp ()
ObjectiveThe date/time of this article is all formatted as "2016-01-01 01:01:01"; monitor_time is the database table field;string and date/time Mutual conversion function OracleDate/Time -to-string function: To_char (t.monitor_time, ' Yyyy-mm-dd hh24
DAYOFWEEK (date)The return date is the day of the week (1= Sunday, 2 = Monday,...... 7= Saturday, ODBC Standard)Mysql> Select DAYOFWEEK (' 1998-02-03 ');3WEEKDAY (date)The return date is the day of the week (0= Monday, 1 = Tuesday,...... 6=
After a period of nodejs development experience, the selection of the database is MySQL, a start to think their basic knowledge of the database is OK, because after all, they have used Apache+php+mysql database course design, However, in the
DAYOFWEEK (date)The return date is the day of the week (1= Sunday, 2 = Monday,...... 7= Saturday, ODBC Standard)Mysql> Select DAYOFWEEK (' 1998-02-03 ');3WEEKDAY (date)The return date is the day of the week (0= Monday, 1 = Tuesday,...... 6=
DAYOFWEEK (date)The return date is the day of the week (1= Sunday, 2 = Monday,...... 7= Saturday, ODBC Standard)Mysql> Select DAYOFWEEK (' 1998-02-03 ');3WEEKDAY (date)The return date is the day of the week (0= Monday, 1 = Tuesday,...... 6=
MySQL Date time function encyclopediaDAYOFWEEK (date)The return date is the day of the week (1= Sunday, 2 = Monday,...... 7= Saturday, ODBC Standard)Mysql> Select DAYOFWEEK (' 1998-02-03 ');3WEEKDAY (date)The return date is the day of the week (0=
Read Catalogue
Objective
string and date/time reciprocal conversion function
Date/Time calculation function
ObjectiveThe date/time of this article is all formatted as "2016-01-01 01:01:01"; monitor_time is the database table
SQL statement that inserts a table of data, and a specific data (fixed constant) into another sheetInsert into Select Code,0,1,1,1 from Wm_jobpointINSERT into SELECT from Wm_county pThe fields that are inserted here and the fields of the query
Because now the project with the database MySQL, so it must be studied on the processing of time, how to deal with the month, year, day, time, how to query, polymerization time, etc., through the search information, is summarized with the next, so
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.