The use of the--oracle trunc () function/************** Date ********************/1.select trunc (sysdate) from dual--2011-3-18 today's date is 2011-3-182.select trunc (sysdate, ' mm ') from dual--2011-3-1 returns the first day of the month.3.select
PL/SQL is an extension of Oracle's standard database language, Oracle has consolidated PL/SQL into Oracle servers and other tools, and more developers and DBAs have started using PL/SQL in recent years, and this article will cover the PL/SQL basic
Http://www.cnblogs.com/hanyun/archive/2009/05/14/1456772.html1). When using Oracle's To_date function for date conversion, it is possible to intuitively convert in "YYYY-MM-DD HH:mm:ss" format as a format, but in Oracle it causes an error: "ORA 01810
DECLARETYPE name_list is TABLE of VARCHAR2( +);TYPE type_list is TABLE of VARCHAR2( -);Tab_name name_list:=name_list ();Tab_type type_list:=type_list ();Sql_strVARCHAR2( -);BEGINSQL_STR:= 'Select Uo.object_name,uo.object_type from user_objects
[SQL]View Plaincopyprint?
Sql> Show Parameter Open_cursors -the maximum number of cursor (cursors) that can be opened at the same time per session
NAME TYPE VALUE
------------------------------------ ----------- ---------------------------
With this method, only a few necessary parameters can be passed to test the remote connection of the database, and the connection returns true successfully, and the failure returns false. Description: The first parameter indicates that you are a
1, first, introduce the TO_CHAR functionTo_char is to convert a date or number to a string and cannot specify a string length.Use the TO_CHAR function to process the date:To_char (number, ' format ') For example: To_char (Salary, ' $99,999.99 ')Use
13th chapter set operator 1.SET operator: union/union allINTERSECTminusThe 2.UNION operator returns a set of two query result setsSELECT employee_id, job_idFrom EmployeesUNIONSELECT employee_id, job_idFrom Job_history;2.1UNION All operator: Returns
Command:Sqlldr Userid=[username]/[password]@[database] Control=[filepath]Username User NamePassword PasswordDatabase DB InstanceFilePath the physical path of the CTL
A media failure has occurred. This have resulted in all the MembeRs of the next hop log group being rendered inaccessible to the log WRiter process (LGWR) at a log switch. How does this failure affect thE Operational database?A. The database
Chapter Eighth Data processing1. Data Manipulation languageDML (data manipulation language–) can be executed under the following conditions:Inserting data into a tableModifying existing dataDelete existing dataA transaction is made up of DML
After the installation of Oracle, it is usually found that there are 2 system-level accounts can log in, but never considered the difference between the 2 accounts, and then learned from a teacher that the difference is recorded.SYS account login,
Fifth chapter grouping functions1. What is a grouping function?A grouping function acts on a set of data and returns a value to a set of data.Type: AVGCOUNTMAXMINSTDDEVSUM2.AVG (average) and SUM (total) functions:You can use the AVG and SUM
The backup-based Rman Duplicate command to create the standby databasePrerequisites: To ensure that the original database backup, archiving for the standby end is fully visible,This assumes that the original library and the target data file, log
1. Install \oracle\10201_database_win32.zip;A) installation diagram: http://jingyan.baidu.com/article/5d6edee228308899eadeec3f.htmlb) Note: the compatibility settings for the setup.exe executable file are as follows:2. Install the Plsqldev8.0.zip
1.cmd Sqlplus/nolog;2.conn Sys/as sysdba;3.Create user query identified by query;//4.alter user Query Account unlock;//unlocked5.alter user query identified by tiger;//change password6.grant Connect,resource to query;//permissions7.select t.* from
First, the userWhen you create a data instance, Oracle creates some default database users, such as Sys,system and Scott. SYS and system users are users of Oracle systems, and Scott users are a test account for the Oracle database, which contains a
When we operate the database, we sometimes encounter the need of insertorupdate.If there is data in the database in the update, insert if it does not exist.In the past, additional select queries are required, and if there is data on the update,
When we use with, Oracle may convert the results in with into a temporary table, which is just possible because the CBO will judge. Inline is not converted to a temporary table, and materialize is coerced into a temporary table.Manufacturing
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service