TablespaceIn Oracle, table space is the basic method for data management. All user objects must be stored in the table space, that is, the user has the right to use the space to create user objects. otherwise, you do not need to create objects
I want to use a temporary table in Oracle today, so I wrote it!
Create global temporary table tablename (Col1 varchar2 (10 ),Col2 number) On commit preserve (delete) rows;
-- On commit Delete rows indicates that the temporary table is specified by
Use the following statement if no data exists.
Alter table tb_test modify permile number (5, 2 );
However, if there is data, you cannot use the above method,
Alter table tb_test add permile_temp number (5, 2)
Update tb_test set permile_temp =
Select extract (year from execution_end_date) as year, extract (month from execution_end_date) as month,Department_id, count (form_no) CIP DataFrom cip_masterGroup by extract (year from execution_end_date), extract (month from execution_end_date),
If-then-else logic in decode is often used in logic programming for logical judgment. In decode syntax, this is actually the logic processing process. Its syntax is as follows:
Decode (value, if1, then1, if2, then2, if3, then3,... else)
Value
Many people should encounter deadlocks in multiple Oracle processes. Below are two simple SQL statements to kill the deadlock process:
-- Sep2, 2008 eleven. Xu
-- Select locked Process
Select S. username,
L. object_id,
O. Name,
L. session_id,
The following are some of my Oracle pen questions and answers.
1. create a tablespace, and name the data file neudata. DBF, which is stored in the D: \ data directory. The file size is 200 MB, which is set to auto-increment and 5 MB. The maximum
Similar to Oracle database, DB2 also has the conception of table space. A table space is the storage structure containing tables, indexes, larger objects/long data such as lob object, therefore the table space orginze these datas in database to
It is not very common to query the character set modification Character Set of oracle.
Query the character set of Oracle
Method 1
SQL> select userenv ('language') from dual;
Userenv ('language
PL/SQL is the core language of Oracle databases.
No matter what development work you are engaged in or what level you are engaged in, as long as you use the Oracle database, you can always find something you want here. Reduce the time you need to
There are three levels of cache in obiee:
DB cache-> obiee server cache-> presentation cache (Web ie cache)
1) for the database cache, it is the problem of SQL parsing. You can change the SQL statement. For obiee, it is to change the request or
1. What is a transaction?
Transactions are used to ensure data consistency. They are composed of a group of related DML statements. The group's DML statements (data operation language, add, delete, modify, and no query) are either all succeeded, or
Description:In the normal development process, we will find that there are many types of dates, including Java. lang. date, Java. SQL. date, Oracle. jbo. domain. date, And the timestamp oracle. jbo. domain. timestamp and so on. Conversion between
Recently, the project has been completed (maybe not enough), but a fatal obstacle is performance. Now let's think about how brilliant the top author is. The performance runs through various stages such as project requirements, project analysis and
In Oracle, sequence is the so-called serial number, which is automatically increased every time it is obtained. It is generally used in places where the sequence numbers need to be sorted.1. Create SequenceFirst, you must have the create sequence or
Oracle Database Process Overview:
Database buffer cache is mainly used to store data blocks in data files.
Data blocks in the database cache are the basic unit for information exchange between the cache and data files. Before Oracle Database 8 I,
1. Create a stored procedureCreate or replace procedure Test (var_name_1 in type, var_name_2 out type)-- Declare a variable (variable name and variable type)Begin-- Execution body of the stored procedureEnd test;
Print the input time informationE. g:
How to Use % Type and % rowtype in Oracle PL/SQL
1. Using % Type in many cases, PL/SQL variables can be used to store data in database tables. In this case, the variable should have the same type as the table column. For example, if the first_name
Keywords: Han number rank, over partition use
Rank () function. These permutation functions provide the ability to define a set (using the partition clause) and then sort the elements in the Set in a certain sort method, the following uses the
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