MySQL self-study (III) and mysql self-study
MySQL Data Type
MySQL supports multiple data types, including numeric, date, and string.Value Type
MySQL mainly provides INTEGER types: TINYINT/SMALLINT/MEDIUMINT/INT (INTEGER)/BIGINT
You can add the
Simpledateformat class to solve our time format problem.
Simpledateformat is a type used to format and analyze dates in a language environment-related manner. It allows formatting (date-> text), analysis (text-> date), and normalization.
Detailed explanation of java time and date usage and query code, and detailed explanation of java date code
As long as the format is correct, you can directly compare the string, and the accuracy is the same as that of seconds.
String s1 = "2003-1
C # placeholder usage tutorial,
[\ N \ r] cannot match spaces during regular expression matching. [\ n \ r] can only match line breaks, and line breaks are placeholders, there is no length.
To match blank characters (including spaces, tabs, and
Detailed description of mysql obtaining the current date function and time formatting parameters, and detailed description of mysql Parameters
MYSQL obtains the current date and Date FormatGet system date: NOW ()Format date: DATE_FORMAT (date,
Details on the use of Log4J log management, which is essential for java Development
I. Preface:Log4j is an open source project and is a widely used logging package written in Java. Due to the outstanding performance of log4j, at the time when log4j
Use C # To Format a string
1 Preface
If you are familiar with Microsoft Foundation Classes (MFC) cstring, Windows Template Library (wtl) cstring or standard template library (STL) string class. you must be familiar with the format method. This
Details on the use of log4j log management, which is essential for Java DevelopmentI. Preface:Log4j is an open source project and is a widely used logging package written in Java. Due to the outstanding performance of log4j, at the time when log4j
Steps to use the log4j log
Step one: Add Jar pack Support
First set up a Web project, to log4j website under the log4j jar package imported into the project Lib directory
Step two: Add and load the configuration file
Build a log4j.properties file
Mysql database Date and Time Functions, mysql function Daquan, summary record, for later use.
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 ');-
Format the date in the. net view. net view date
Yesterday, I made a function to display a time in the interface according to the specified format. If the time is formatted directly in expression (as follows :)
@ Html. displayFor (c => Convert.
Record an SQL statement first.Select uid, rank, money, e, from_unixtime (time/1000) from stats_2012_01_19 where comm = 8888 and e> 40 and from_unixtime (time/1000) between '2017-01-19 00:00:00 'and '2017-01-19 01:00:00'Then start to convert
Programming example of popular issues in WCF (4): How does a WCF client asynchronously call the WCF Service?
How to call WCF Service asynchronously?
[1] Problem description:
How does a WCF client asynchronously call the WCF Service?
For (I = 1; I {
Fileupload Fu = (fileupload) panel1.findcontrol (string. Format ("fileupload {0}", I ));Textbox textboxa = (textbox) panel1.findcontrol (string. Format ("textbox {0}", I ));
If (Fu. postedfile. contentlength {
String Path =
The parameter configuration in the log4j configuration file is mainly divided into three parts: Priority configuration, log information output destination configuration, and log information output format configuration.
The log priority ranges from
The following query Selects all records. The value of date_col is within the last 30 days:
Mysql> SELECT something FROM tableWHERE TO_DAYS (NOW ()-TO_DAYS (date_col)
DAYOFWEEK (date)Returns the index of the week of the date (1 = Sunday, 2 = Monday ,
Here is an example of using the date function. The following query Selects all records. The value of date_col is within the last 30 days:
Mysql> select something from tableWhere to_days (now ()-to_days (date_col)
Dayofweek (date)Returns the
Fully collected MySQL date and MySQL Time Functions
Date_format (date, Format)
Format the date value based on the format string. The following modifier can be used in the format string: % m month name (January ...... December)
% W name of the Week
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.