1. QuestionsToday, using Fmdb to do an example program, a new table has a DateTime field, the database has a default value, presumably as followsCREATE TABLE [Consumptiontype] ([id] INTEGER PRIMARY KEY not NULL, [name] text,[level] Text,[creatdate]
Table Partitioning (learning notes), Table Partitioning learning notes
Table partition:
Application Scenario: For tables with a large data volume, for example, tables with 2 GB of data, 20 pieces can be queried, which is certainly faster than
TO_DATE format (take time: 13:45:25 as an example)
1. Date and character conversion function usage (to_date, to_char)
Copy codeThe Code is as follows:Select to_char (sysdate, 'yyyy-mm-dd hh24: mi: ss') as nowTime from dual; // convert the date to a
1. conversion functionsThe biggest relationship with the date operation is the two conversion functions: to_date (), to_char ()To_date () converts the character type to the date type in a certain format:Specific usage: to_date ('1970-11-27 ',
Source time: to_char (datevalue ));Source time minus 1 day: to_char (DateValue-1 ));Source time minus 1 day 1 hour: to_char (DateValue-1-1/24 ));Source time minus 1 day 1 hour 1 minute: to_char (DateValue-1-1/24-1/(24*60 )));Source time minus 1 day 1
For more information about the use of ORACLE time functions (SYSDATE), oraclesysdate
Addition
Select sysdate, add_months (sysdate, 12) from dual; -- add 1 year select sysdate, add_months (sysdate, 1) from dual; -- add January select sysdate,
Processing date in Oracle
To_date formatDay:Dd number 12Dy abbreviated FriDay spelled out FridayDdspth spelled out, ordinal twelfthMonth:MM number 03Mon abbreviated MARMonth spelled out MarchYear:YY two digits 98Yyyy four digits 1998
The time
Processing date in Oracle
To_date formatDay:Dd number 12Dy abbreviated FriDay spelled out FridayDdspth spelled out, ordinal twelfthMonth:MM number 03Mon abbreviated MARMonth spelled out MarchYear:YY two digits 98Yyyy four digits 1998
The time range
Processing date in Oracle
To_date formatDay:Dd number 12Dy abbreviated FriDay spelled out FridayDdspth spelled out, ordinal twelfthMonth:MM number 03Mon abbreviated MARMonth spelled out MarchYear:YY two digits 98Yyyy four digits 1998
The time range
To_date formatDay:Dd number 12Dy abbreviated FriDay spelled out FridayDdspth spelled out, ordinal twelfthMonth:MM number 03Mon abbreviated MARMonth spelled out MarchYear:YY two digits 98Yyyy four digits 1998
The time range in the 24-hour format is: 0
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.