Oracle and Mysql time formatting 1. Oracle formatting time: Oracle obtains the current date and Date Format
Get system date: SYSDATE () format Date: TO_CHAR (SYSDATE (), 'yy/MM/DD HH24: MI: SS) or TO_DATE (SYSDATE (), 'yy/MM/DD HH24: MI: SS) format
We know that the database storage money type can be float, double, decimal, compared to decimal is the best use.Well, our company is divided into units, type with bigint access, operation of the time to is very convenient, when the show will have to
1. Export the entire database
Mysqldump-u user name-p--default-character-set=latin1 Database name > exported file name (database default encoding is latin1)
Mysqldump-u wcnc-p SMGP_APPS_WCNC > Wcnc.sql
2. Export a table
Mysqldump-u user name-P
Mysql data format: bitsCN.com
Varchar occupies 2 bytes for each English (ASCII) character, and only two bytes for one Chinese characterChar occupies 1 byte for English (ASCII) characters, and the type of Varchar that occupies 2 bytes for a Chinese
1. Connect to MYSQL: mysql-h host address-u user name-p User Password 1. Example 1: connect to MYSQL on the local machine first open the DOS window and then enter the directory mysqlbin, enter the mysql-uroot-p command and press enter to prompt you
I don't think many of my friends will use the float type in mysql, especially when we use money, we may use double precision, we know that the float type of mysql is a single-precision floating point type, which may cause data errors accidentally.
I
Usage of float type in mysql bitsCN.com
A single-precision floating point uses 4-byte (32bit) to represent a floating point.A computer floating point number that adopts the IEEE754 standard is represented in binary format internally.For example, 7.22
FLOAT and DOUBLE types support the use of standard floating point operations for approximate calculation. The DECIMAL type is used to store precise decimals. Because the cpu does not support direct DECIMAL computing, in MySQL and later versions, the
MySQL Common commands1. Export the entire databaseMysqldump-u user name-p--default-character-set=latin1 Database name > exported file name (database default encoding is latin1)Mysqldump-u wcnc-p SMGP_APPS_WCNC > Wcnc.sql2. Export a tableMysqldump-u
8.2.2 creating users and empowering them as MySQL administrators, the most common task is to maintain user information--adding and removing users and managing their permissions in MySQL. Manage user permissions by using the GRANT and REVOKE commands
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.