The Oracle Trunc () function is one of the most commonly used functions, and the following is an introduction to the use of the Oracle Trunc () function for your reference, hoping to give you a deeper understanding of the Oracle Trunc () function.
1
one, for the table to create a self-growth from the paragraph there are two, one is different tables using their own sequence , the following methods:
1, in Oracle sequence first create sequence
Create sequence Seq_idminvalue 1start with
1, the use of tools Plsqldev
2. Open the Excel table you want to import, click the Office Button, choose Save As--other formats, select Save Type CSV (comma-delimited) (*.csv), click Save
3, open Plsqldev in the toolbar Select the Tools Drop-down
This paper mainly introduces the differences between RowNum and ROWID in Oracle query, and takes the hypothetical way as an example, the query condition is rownum = 2, and the specific content of the first record is introduced.
In the query, we can
For many occasions we use Oracle's column merges, Oracle provides some of the following ways to implement column merging:
Oracle 10G previously used wmsys.wm_concat:
Wmsys.wm_concat the value of the field with "," to separate it.
Select Id,
Oracle's NVL function
NVL () function
Returns a non-null value from two expressions.
Grammar
NVL (EExpression1, EExpression2)Parameters
EExpression1, EExpression2
If the eExpression1 evaluates to a null value, NVL () returns EEXPRESSION2.
Method:
1. Remove all foreign KEY constraints
2. DROP table
3. Add FOREIGN KEY constraintCode uses Powerdesign to generate
/*==============================================================*//* DBMS name:oracle Version 10g */
* Created ON:
1. Connect the native database
A. If the machine has a static ip,oracle installed, it can connect the native Oracle database.
B. When Oracle is installed, the computer does not have a static IP (that is, when the network cable is not plugged
Indexing is a required option for a database, but for today's large databases, indexes can greatly improve the performance of the database, so that it becomes an integral part of the database.
Index Categories:
Logical classification
Single column
Produces a primary key value using a sequence.
A sequence (Sequence) is a database object that can be used by more than one user to produce a series of unique numbers. Sequence definitions are stored in the data dictionary, simplifying program
--Create a table that is a child table
CREATE TABLE fk_t as select *from user_objects;
Delete from fk_t where object_id is null;
Commit
--Create a table that is used as the parent table
CREATE TABLE pk_t as select *from user_objects;
Delete
Solution:
Modify an Oracle user's environment variable file. Join nls_lang= "simplified Chinese_china.al32utf8"; Export Nls_lang
Copy Code code as follows:
[oracle@rhel6r4 ~]$ vi. bash_profile
#. Bash_profile
# Get the alias
Author: Peace.zhao
An example of a cursor if,for
Create or replace procedure peace_if
Is
Cursor Var_c is select * from grade;
Begin
For temp in Var_c loop
If Temp.course_name = ' OS ' Then
Dbms_output.put_line (' stu_name = ' | |
Week using IW method, if the 52nd Zhou Bie of the year between December 31 and the year, and more than or equal to 4 days, then the 53rd week of the year, otherwise the remaining these days are classified as the 1th week of the next year
1.Oracle Server-side Character set query
Copy Code code as follows:
Select Userenv (' language ') from dual;
Server Character Set modification :
To start the database in restricted mode to do character set changes:
Write a batch file first, give an example.
Copy Code code as follows:
Set rq=%date:~0,10%
Exp System/system password @ Local Service name file=d:\backup\bak%rq% Full=yes log=d:\backup\bak%rq% buffer=65536
C:\progra~1\winrar\rar.exe A-DF
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.