Learning the database, we are just learning attitude, consider how to use the database command statements, did not think about the work, if the wrong operation, can lead to irreparable loss. When I really met these questions at work, I started
ORACLE: Enquiry ( See ) table primary key, FOREIGN key, uniqueness constraint, and index1. Find all indexes of the table (including index name, type, constituent column)Select T.*,i.index_type from User_ind_columns t,user_indexes i wheret.index_name
first, import and exportOracle's backup is a common work in Oracle operations, and common backup scenarios include:1, logical backup (IMP&EXP command for backup)There are four types of modes:(1) Table space Backup (tablespace)(2) Tables Backup
1. Character functionsSelect lower (' Hello World ') turns lowercase, upper (' Hello World ') to uppercase, Initcap (' Hello World ') capitalized from dual;2. Character control functionsSubstr (A, B) takes the Select sub (' 123457890 ', 2) substring
First, the basic conceptThe syntax for a multi-table query is as follows:SELECT [DISTINCT] * | field [Alias] [, Field [alias],...] from table name [alias], [table name [alias],...] [WHERE condition (S)] [Order by Sort field [asc| DESC] [, sort field
Recently in the Oracle Sqlplus Official document, the Sqlplus Security section describes the PUP mechanism. Take this. I'm going to use the following:PUP (Product_user_profile) IntroductionProduct_user_profile is the next table in the system account
One, add dataINSERT statement INSERT INTO TABLE_NAME (Name of field, field name) VALUES (value1,value2)1. Add values to all fields in the tableINSERT into UserInfoVALUES (1, ' xxx ', ' 123 ', ' [email protected] ', sysdate)2. Add values to the
About Network InterfacesEach physical and virtual network device on a Oracle Linux system has a associated configuration file named in the ifcfg-interface /etc/sysconfig/network-scriptsdirectory, where interface is the name of the interface. For
1. Concept:Tablespace: The largest logical storage file, corresponding to one or more physical data files, each database has at least one tablespace, and the size of the tablespace equals the sum of the size of all the data files that make up the
Today, when collecting 58-second-hand market data, there is a problem: the style of the Web page is not enough to standardize the data collected, the specific data table is as follows:This data is not conducive to observation, nor can it be used for
Other reasons to not walk the index:1. Set up a composite index, but the query predicate does not use the first column of the combined index, there is an index SKIP scan concept here.2. Index on table column containing null value, when using SELECT
The join verb push (join predicate pushdown) is an optimization method for the optimizer to handle a target SQL with a view, which means that although the optimizer will execute the definition SQL statement of the view in that SQL as a separate unit,
1 /**2 3 4 5 */---Oracle to return data using cursors, read in ADO6 PROCEDUREIsdt_vehicle_task_check (P_carnuminch VARCHAR2,7 cur_out out Sys_refcursor8) is9G_has_taskvarchar2( +);--Task NumberTen BEGIN One A Select Max(t.task_id) -
After executing an SQL statement for the first time in Oracle, the SQL statement is parsed hard, and the execution plan and parse tree are cached in the shared pool. It is convenient to perform this SQL statement again without having to do hard
Original blogger: http://blog.csdn.net/tianlesoftware/article/details/4843600Applies To:Oracle server-enterprise edition-version:10.1.0.5.0This problem can occur on any platform.Symptoms:The issue is, the following error was
// data for the query date (type date) Select * from where to_char (create_date,'yyyy-mm-dd hh:mi:ss'=' 2013-08-12 05:31:09'select to_char (create_date,' YYYY-MM-DD hh:mi:ss' from auth_organization_t t Date type data query operation in Oracle
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