Example of Oracle row-to-column Conversion

A colleague wrote this article. Let's share it with you.   Create Table score(Fname nvarchar2 (50 ),Fsubject nvarchar2 (50 ),Fresult decimal (18, 0));Insert into score values ('zhang san', 'China', 20 );Insert into score values ('zhang san',

Oracle create tablespace create user authorize tablespace grant DBA permission to import DMP data files

If you have already deleted Sqlplus sys/orcl as sysdbaDrop user oawf1;Drop tablespace oawf1;Then manually delete the tablespace file. // Create a tablespace in Oracle. Create a tablespace. Grant the DBA permission to import DMP data files.// Log

% Rowtype in Oracle

% Rowtype in Oracle:   % Rowtype: indicates that this type is the row data type. It is stored as a row of data. A row has many columns, which is equivalent to a row of data in the table or a row of data in the cursor.   % Rowtype is used to

Oracle 10g "logging uard" log Transmission Method

Oracle 10g "dataguard" log Transmission Mode1. Redo transmission: All online redo logs written to the master database are transmitted to the standby database by synchronously or asynchronously. If the standby redo log exists in the standby

Oracle select for update

Oracle select for updateIn most cases, the rows checked by the cursor are modified for the processing completed in the extraction loop. PL/SQL provides a syntax for such processing. This syntax includes two parts: the for update clause in the

Oracle's sign function, decode function, nvl Function

Address: http://wentao365.iteye.com/blog/1156889 Sign Function: Used to determine whether a value is positive, 0, or negative. The returned values are 1, 0, and-1 respectively. Decode function: Decode (expression, value 1, result 1, value 2,

Linux and Oracle commands used

--- Use an oracle user to go to sqlplus to delete the user and create another user and grant permissions -- The permission must have synonym; otherwise, an error occurs when the imp dmp file is used. Su-Oracle Sqlplus/As sysdba Drop user base

Oracle Data Import and Export dmp

Oracle Data Import and Export dmp 1: Start-> Run-> cmd-> exp-> User Name/password @ connection word (DBA permission is required for full Database Export)-> press ENTER-> enter the export path (C: /AA. DMP)-> select (E, U or T) as required-> press

Oracle converts the number of seconds to a specific date

1. In an application, an absolute number of seconds is obtained from 00:00 on January 1, January 1, 1970 to the current time, and is stored as a number field in the Oracle database table; 2. Sometimes we need to restore this number of seconds to a

Oracle recursive query of the connect by priop Annotation

Connect by is used in structured queries. Its basic syntax is: Select... from tablename start by cond1 Connect by cond2 Where cond3; Simply put, a tree structure is stored in a table. For example, a table has two fields: The ID and parentid indicate

Oracle script modification table

1. Add Columns Alter table table_name add (column datatype [Default expr] [, column datatype...]); For example: SQL> ALTER TABLE emp01 add Eno number (4 ); 2. Modify column Definitions  For example: SQL> ALTER TABLE emp01 modify job varchar2 (1

If Oracle Data is not deleted, change the field type.

-- Modify the info_cus_complex_tax sequence number typeAlter table info_cus_complex_tax add AA number;-- Add/Modify columnsAlter table info_cus_complex_tax modify no null;-- Disable ConstraintsAlter table info_cus_complex_tax disable constraint

Summary of Oracle interview questions

1. Describe the relationship between tablespace and datafile Tablespace is a logical component of the database. Physically, the database data is stored in the data file. Logically, the database is stored in the tablespace, which is composed of one

Precautions for installing and installing Oracle

It was originally with images. when the results were saved, too many images were lost (Crying fast) Download Li Xinghua Oracle video notes: Click to open the link I'm using Windows 64-bit, Oracle 10:

Connect C ++ to Oracle

There are two main methods to develop the Oracle database interface in Visual C ++. One method is to use multiple database access technologies provided by Visual C ++, for example, Open Database Connection ODBC, Data Access Object Dao, object

Two Oracle database running Modes

  1. There are two ways to run Oracle databases: (1) archivelog: Archive aims to restore the database to the maximum extent when a database fails. It ensures that no submitted data is lost: (2) Non-archive mode (noarchivelog): Only the database can

Oracle exception in the predefined description

Oracle exception in the predefined description Oracle error exception informationORA-0001 dup_val_on_index tries to break a unique limitORA-0051 timeout-on-resource timeout while waiting for resourcesThe ORA-0061 transaction-backed-out is canceled

Oracle series: pseudo-column rowid

Previous Article: Oracle series: Oracle Data TypesLink: http://blog.csdn.net/qfs_v/archive/2008/05/12/2435213.aspxOracle series: pseudo-column rowid 1. What is a pseudo-column rowid?1. First, it is a data type that uniquely identifies an ID of a

Oracle series: Record + PL/SQL tables

Document directory Oracle series: Record and PL/SQL tables Oracle series: Record and PL/SQL tables 1. What are record and PL/SQL tables? Record: a temporary record object type consisting of a single row and multiple columns of scalar type.

View the lock table process in Oracle and kill the lock table process.

View the lock table process SQL statement 1:Select sess. Sid,Sess. Serial #,Lo. oracle_username,Lo. OS _user_name,AO. object_name,Lo. locked_modeFrom v $ locked_object Lo,Dba_objects AO,V $ session sessWhere ao. object_id = Lo. object_id and Lo.

Total Pages: 2147 1 .... 1397 1398 1399 1400 1401 .... 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.