Oracle---plsql---example laobai

SELECT * FROM scott.emp;--1 Lists department numbers for each department in the EMP table, maximum wage, minimum wage select Deptno,max (sal), Min (sal) from Scott.emp GROUP by deptno;2 Column The minimum wage, maximum wage, select min (sal), Max

Oracle's round functions and TRUNC functions

The use of the--oracle trunc () function/************** Date ********************/1.select trunc (sysdate) from dual--2013-01-06 today's date is 2013-01-062.select trunc (sysdate, ' mm ') from dual--2013-01-01 returns the first day of the

Log pits in the process of installing and using Oracle databases on Windows

1. Install Oracle Oracle software is free and can be downloaded to the website to download the appropriate installation package. However, if commercial use is required to purchase license. Official online for various platforms, both 32-bit and

Oracle Stored procedure Record exception

--Create error Log table Create TablePub_proc_err_log (log_id Number, Module_nameVARCHAR2( -), Proc_nameVARCHAR2( -), Err_time Date,sql_codeVARCHAR2( -), Sql_errmVARCHAR2( -), Err_contentVARCHAR2( -)); Comment on columnPub_proc_err_log. log_id is

Common operations and database restores after Oracle installation is complete

First, start the service, (skip this step if the database is in a startup state)Open the command line to execute the following statementnet start ORACLESERVICEORCLnet start Oracleoradb10g_home2tnslistenernet start Oracleoradb10g_home2isql*plusThe

Unlocking and locking Oracle users at the command line

In the command line, the Oracle user unlocks the operation method, through a few simple unlock statements can do this work. Here are the specific procedures:Unlock Users1: Log in to Oracle using an Administrator accountSqlplus system/Password2:

Oracle Transaction serial Number problem

Requirements: Generate a trade serial number, each time a new record is added automatically 1, and serial number form 000000001 form of 10 digits.Idea: The sequence can be used to generate the self-increment of the serial number, only need to add n 0

Some of Oracle's operations

dba

1Create user user name identified by "password"; For example: Create user Ghc_ez identified by "ghc_211"; authorization: Grant CONNECT,RESOURCE,DBA t o user name; for example: Grant CONNECT,RESOURCE,DBA to Ghc_ez;2Create the required

Using Text_io to Read Files in Oracle d2k

Suppose want to read a file from d2k client and want to store it content in Oracle database. But if you would insert row by row from the client to server it would take the more time and increase lot of network Traffic/round Trips.the solution of

Scientific counting display problem for long number type numbers in Oracle

There is an ID column in the table with type number (38). When querying in Sqlplus, the query results are displayed in scientific notation: ID----------4.5572e+184.5574e+184.5585e+18This does not seem intuitive, and the reason for this is

Oracle database from getting started to mastering four

Sequenceis a more important concept in OracleThe transaction does not work for DDLqueries, updates, datasheets, constraints these concepts to master.There is a data type in many databases-the autogrow column, which canCreate a serial number12c did

Oracle Performance Optimization

(1)Select the most efficient table name order (valid only in the rule-based optimizer):The Oracle parser processes the table names in the FROM clause in a right-to-left order, and the FROM clause is written in the final table (the underlying table,

Use of the Oracle to_date () function

Use of the Oracle to_date () functionTo_date () is one of the representative functions of Oracle database functions, and the following is a detailed description of several uses of the Oracle To_date () function for your reference.In Oracle database,

BufferedWriter page Export of Oracle table data to file loss partial recording problem

There is a need to come up with a problem that needs to provide an interface to the external channel to get the relevant data, because the table record has hundreds of thousands of, abandoned the HTTP interface. Instead, take the makefile to the FTP

oracle--export, import fields of BLOB type

A blob is a data type in Oracle that holds big data in the compressed binary form.Data migration is not easy to handle if it involves a BLOB field because it cannot be manipulated in the usual way, such as by using Select to view the field, or by

Oracle 11gR2 Build Dataguard

1. Build the EnvironmentMain Library ORACLE11GR2 Library ORACLE11GR2Db_name ORCL ORCLDb_unique_name ORCL standby239Configuring the Host FileMain Library: Primaryhost Library: StandbyhostThe prepare library is placed in archive mode.2. Configure

Oracle Regular expression function-regexp_like use example

The original in this pokeRegexp_like3 parametersThe first one is the string enteredThe second one is the regular expressionThe third is the range of values:I: case is not sensitive;C: Case sensitive;N: Point number. Do not match line break symbols;M:

Oracle's Nomount, Mount, open three states

1. First look at the information on the foreign website how to say nomount , Haven database instance has been started (processes and memory structures had been allocated, but contro  L file is not yet accessed). The DB instance has started (

Oracle Database recovery Password

The Oracle database forgets the user's password. The proven solution is as follows:1, Ctrl + R open cmd window, enter Sqlplus/as sysdba (note/left and right side have space)2, run CMD, enter the ALTER user username account unlock; (user name is the

Oracle Cursors Batch processing data

Declare--Start timeV_date_start date:= to_date (' 2015-05-28 00:00:00 ', ' yyyy-mm-dd hh24:mi:ss ');--End timeV_date_end date:= to_date (' 2015-11-01 00:00:00 ', ' yyyy-mm-dd hh24:mi:ss ');--Temporary variablesV_date_plus date;Type Type_policy_no is

Total Pages: 2147 1 .... 995 996 997 998 999 .... 2147 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.