Share two SQL statements
1. regexp_replace supported by Oracle SQL
SQL> select regexp_replace ('fuck', '(.) (.)', '/123') from dual;Regexp_replace ('fuck ','(.)(------------------------------Ufkcy UO
(Haha)
There are two letters in a pair.
//////////////////////////////////////// /////////////////////////////
number of records in totalrecouds table select COUNT (*) from table name totalpages total pages totalpages= totalrecouds%pagesize==0?totalrecouds/pagesize:totalrecouds/pagesize+1 pages start position pages= pagesize* (pageNumber-1) sql statement: select * from table name limit pages, pageSize; mysql paging depends on the keyword limit it requires two parameters: start position and pagesize Start position = page Size * (pages 1) Star
Oracle SQL Performance 1. ORACLE optimizer:. RULE (based on Rules) B. COST (COST-based) c. CHOOSE (optional) sets the default optimizer. various declarations of the OPTIMIZER_MODE parameter in the ora file, such as RULE, COST, CHOOSE, ALL_ROWS, FIRST_ROWS. of course, you also overwrite SQL statements or sessions. to us
database. Wait a moment and prompt that the export is complete. Then run the following command to import data:
>oracle_ctl[oracleusername][password]
You do not need to specify the database name or the like here, because it has already been specified in the script.
Wait for a moment after the import is complete.
At this point, the knowledge about migrating SQL to Oracle by
Oracle SQL developer similar to Plsqldeveloper ; http://www.oracle.com/technology/products/database/sql_developer/index.html Install the tool to unzip it OK Open it You must first establish a connection to the database 650) this.width=650; "title=" clip_image002 "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" clip_image002 "src=" http://img1.5
VARCHAR2) isBeginINSERT into EMP (empno,ename) values (in_no,in_name);EndThe out parameter represents the user's outputProgram Demo:Create or Replace procedure My_pro (In_no in Number,out_name out varchar2,out_sal off number) isBeginSelect Ename,sal to Out_name,out_sal from EMP where empno=in_no;Endin Sqlplus, you want the value after the process with the output has finished executingMethod 1: Write anonymous blocksDeclareV_name Emp.ename%type;V_sal Emp.sal%type;BeginMy_pro (7369,v_name,v_sal);
Oracle pl/SQL programming the use of SQL statements select must have a return record, do not report an error saying that no data is found and must have an into select statement to return one and only one record cannot be written as where deptno = 10 because multiple records will be returned. Of course, the record mentioned here is not an absolute record, but a re
guess: The SQL text in Oracle Ash report appears "* * SQL text not Available * *" for reasonsToday is doing HVR data synchronization software data synchronization test, due to the large amount of data (1 records 14M, contains LOB fields, 3,000 records) and the IO is poor, so the synchronization (to be exact, HVR refresh) is slow.During the HVR synchronization pro
Label:http://uule.iteye.com/blog/2061773 (source) Bulk Import Script : Open a Command Window > enter @ > It will let you select the file you want to import (you need to know the order of the imported files, Plsql will not automatically recognize this or write a script like LS) such as: @d:\svn\1.5 database Script \oracle\import2.sql http://blog.csdn.net/hbhgjiangkun/article/details/8208565 1, PL/
After sqlserver2005, MSSQL began to use the recursive query method. Compare the methods for writing stored procedures or functions at the beginning. This method is simpler and more flexible.
Oracle also has its own tree structure recursive query method, connect
Next I will write a piece of SQL code by myself, and briefly comment out some usage of the CTE shared expression. Query the root node and subnod
Original article: http://www.bootad.cn/post/185.html
As we all know, to connect to Oracle using PL/SQL, you need to install the Oracle client software. Have you ever wondered whether to directly connect to Oracle without installing the Oracle client?
In fact, I always wante
://wenku.baidu.com/view/e0e569c3bb4cf7ec4afed0db.html2. ConfigurationOn the server side, follow these steps:Select Net Manager, and thenAlways default Next,Ii. Oracle Client Installation and configurationInstallation is very simple, directly select the second item, has been the default next, until completed.Configuration:Select Net Configuration Assistant, and then select Local Network connectionAlways default Next, appearsFill in the Global database
1) classification of Sets
Oracle supports three types of collections:
Associative array (Index-by table)
Nested table)
Variable-length array (VARRAY)
One of their differences is that the Nested table and VARRY can be used either in PL/SQL or directly in the database, but the Associative array doesn't work, that is, associative array cannot be created separately using the create type statement. It can only b
Many people, especially those who do not like Oracle, must learn from Oracle and think that Oracle occupies a lot of memory.I really don't like installing oracle on a physical machine. Most of them are Windows users, and most of them are developers.Based on the above requirements, I provide a solution:Attach an
This article introducesSQL migrationThe second part: create a data file library Migration Repository ).
1. Connect to Oracle
In the connection window on the left of the program, click the plus sign to add oneOracle DatabaseFor example:
After the configuration is complete, click Connect to connect to the database.
2. Create a user
Open the connection to Oracle Data and create a new user. In this mode, we ne
[SQL] PL/SQL Syntax of Oracle and its extended data types summary PL/SQL syntax PL/SQL program consists of three parts: Declaration, execution, and exception handling. Template:
[SQL] DECLARE/* variable Declaration */BEGIN/* Progr
Tags: mil com grant revoke Sele AC back SEL query ------------I do not have him, but the hand is ripe, humble and foolish, and eager to be hungry------------- Summary One version: The database definition language for theLanguageDDL(data definition) . Used to create various objects in the database. such as tables, views, indexes, synonyms, and so on. Create drop truncate ALTER DQL(data query Language) querying language . Select where group by have order by The.DML(datamanipulation Language
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.