ORACLE Chapter II Common operationsTo modify column information in a table:ALTER TABLE Vendor_master Modify (vencode varchar);Add a default value constraint to a column in a table ALTER TABLE mytable Modify (name VARCHAR2 () default ' abc ');To add
public class test{public static void Main (String args []) {Java.util.Date a = new java.util.Date ();System.out.println (a);Java.sql.Date B = New Java.sql.Date (A.gettime ());System.out.println (b);Java.sql.Time C = new Java.sql.Time (A.gettime
BackgroundThe Start_time,end_time time field in the previous Business feedback table was automatically updated over time, which is not the business will, and the serious point is that it is going to fail.There are date,datetime,timestamp time types
A data type is a basic rule that defines what data can be stored in a column and how that data is actually stored. in practical programming, when choosing the basic type of a column, the basic principle is to choose the smallest type that satisfies
Numeric type tinyint Storage Range: 128 to 127 or 0 to 255 tinyint (1) smallint storage range: 32768 to 32767 or 0 to 65535 smallint (3) Mediumint Storage Range:- 8388608 to 8388607 or 0 to 16777215 mediumint (5) int
MySQL supports a large number of column types, which can be divided into 3 categories: numeric types, date and time types, and string (character) types. This section first gives an overview of the available types, summarizes the storage requirements
Start by counting all the tables to seeNumber Type
Column type
The amount of storage needed
TINYINT
1 bytes
SMALLINT
2 bytes
MEDIUMINT
3 bytes
INT
4 bytes
The number of milliseconds in a timely manner when the time type stored in the database is of type bigintIn Java:New DATE (). gettime ();//The number of milliseconds to get the timeWhen you need to convert the number of milliseconds to timeIn
Security for Linux1./ETC/PASSWD file/etc/passwd filefield contains the following information:Login user NameUser passwordUID of user account (in digital form)Group ID (GID) of the user account (in digital form)Text description of user account
Log in to the database using the login command:shell>mysql[-h host]-uuser-p[-D database]Enterpassword-h Specifies a remote host, login local database can not use,-D is used to specify the database selected after login, if no database is specified,
Data types in MySQLMySQL supports multiple data types, numeric types, date/time types, and string (character) types that are not case-sensitive. The various data types are explained in more detail below.1. Data type Description conventionsSeveral
First, the data type
1. Integral type
Data type
Storage space
Description
Range of values
TINYINT
1 bytes
A very small integer
Signed Value: -128~127Unsigned value: 0~255
1. Group function usage rules
In mysql, group functions can be used at will in select statements. However, if a group function exists in a query statement in oracle, other column names must have been processed by group functions, or a column in the
The formula for using execl to convert the timestamp is:
Code:
= (Xxxxxxxxxx + 8*3600)/86400 + 70*365 + 19
Use the mysql tutorial statement to explain the timestamp syntax example:
Code:
Select from_unixtime (1234567890, '% y-% m-% d % h: % I: % s ')
VarmyDatenewDate (); myDategetYear (); get the current year (2 digits) myDategetFullYear (); get the complete year (4 digits, 1970 -????) MyDategetMonth (); get the current month (0-11,
Var myDate = new Date (); myDate. getYear (); // obtain the
A relatively good js Date and Time Acquisition Function is comprehensive and easy to expand. MyDate. getYear (); // obtain the current year (2 digits)
MyDate. getFullYear (); // obtain the complete year (4 bits, 1970 -????)
MyDate. getMonth (); //
MysqlSELECTThisnIsnFournlines; + -------------------- + ThisIsFourlines + ------------------ + note that the rule has changed since MySQL3.23.6. Now we introduce the referenced identifier (database, table, and column name) (If you run in ANSI mode,
Sqlite time function and time processing SQLite page display: Select * FromnewsorderbyiddescLimit10Offset this article is based on the content translation in the official SQLite WIKI. If there is anything wrong with the translation, I hope you can
Datathe zip file containing the data can be downloaded here:
Specdata.zip [2.4MB]
The zip file contains 332 comma-separated-value (CSV) files containing pollution monitoring data for fine particulate Matter (PM) air pollution at 332
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.