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
Common oracle knowledge accumulation and oracle knowledge accumulation1. Basic operation 1. Table operation 1.1 copy and create a table
Create table test as select * from dept; -- copy data and structure from a known table
Create table test as
Oracle
Mysql
Compare versions
Release 10.2.0.1.0 XE windowsxp
5.0.45-community-nt-log MySQL Community Edition (GPL)
As a calculator
Sql> Select from dual;
Mysql> Select;
Mysql>
--trunc (Date,[fmt])/trunc (Number[,decimals])SELECT sysdate from dual;SELECT TRUNC (sysdate) from dualSELECT TRUNC (12.34524,2) from dual; --12.34SELECT TRUNC ( -12.34724,2) from dual; --12.34SELECT TRUNC (12.34524,-1) from dual; --10--Returns the
Comparison between MySQL and Oracle: Function 3: mysqloracle
Function
No.
Category
ORACLE
MYSQL
Note
1
Numeric Functions
Round (1.23456, 4)
Round (1.23456, 4)
Same:ORACLE: select round (1.23456
Oracle:1. Get the current date of the year, month, day, time, minute, secondSelectTo_char (Sysdate,'yyyy') asNowyear fromDual//get the year of the time SelectTo_char (Sysdate,'mm') asNowmonth fromDual//get the month of the time SelectTo_char
i) Oracle Overview
(1) Understand some concepts about the databaseData: In the database field, data is the basic unit of storage, including text, pictures, video, audioDatabase: The Data Warehouse, the place where the data is stored, especially the
This paper is a fast and precise grasp of the SELECT statement in MySQL database.
The basic syntax for a SELECT statement in MySQL is:
The following is a reference fragment:SELECT [Straight_join] [Sql_small_result][Sql_big_result]
MySQL date and time format conversion Linux SCP Usage Detailedoracle/mysql/sqlserver Function Differences2011-07-01 12:34:36| Category: MySQL technology | Tags:mysql sqlsever oracle functions | Report | Font size Big medium small subscription
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.