I. Objective of PL/SQL
Structured Query Language (SQL) is a common language used to access relational databases. It is a fourth-generation language (4gl) and its execution features are non-procedural, that is, you do not need to specify the
Update content:
1. Add large text import (originally only datareader is supported)
2. Data can be imported from row X.
3. Decide whether to save the data row number.
4. The column ing is case insensitive.
5. Constant columns can be
Exists and in efficiency and usage in oracle
Replace not in with not exists
Select * from tsp_product p where not exists (select ''from tsp_orderitem I where p. id = I. product_id)
Select * from tsp_product p where id not in (select product_id
During the project transformation, the paging data written by the original colleague is to query all records from the database and then to the paging data. Now, the paging data is transformed to dynamically querying the split pages and the number of
Check the concept on the bus. The oracle lock mechanism is somewhat different from MSSQL. Take the time to sit down and test it.
Oracle uses the lock mechanism to provide data concurrency, consistency, and integrity between transactions. These
Colleagues want to save the stored procedure written by the project team, instead of dumping, but they can view it at any time. Each stored procedure is stored as an independent file. The first thing that comes to mind is that the development tool
1. Obtain the scn Number of the current database
Select current_scn from v $ database; (switch to sys user or system user query)
The queried scn number is 1499223.
2. query the scn before the current scn number
Select * from table name as of scn
: All departments.Select dept. deptno, dept. dnameFrom dept, empWhere dept. deptno = emp. deptno2. List all employees with higher salaries than SMITH.Select * from empWhere sal> (select sal from emp where ename = 'Smith ')3. List the names of all
The following are all Oracle database connection strings. The summary is very detailed, but I did not summarize them. I just learned from Oracle. Paste it out. First, it is convenient for you to search for it later, and second, it also provides
1. nvl ('A', 'B') if A is null, B is displayed.
2. DECODE (value, if1, then1, if2, then2, if3, then3,... else)
3. grouping function usage, with a parameter. The parameter is the field name. If the result is obtained from this field, 1 is returned.
The SQL statements that I often use in my daily work are summarized as follows for future reference. 1. SELECT * FROM t_doc t order by greatest (T. load_Count, T. read_Count) desc 2. select t from the sum of the two columns. *, (nvl (T. load_Count, 0
DBTwin Database ClusterShows the principle structure of the database cluster:
20130312210124. png(27.47 K)21:05:42
DBTwin implementation principle
20130312210230. png(19.52 K)21:05:42
Transactions are a basic but important concept in
1.Java. SQL. SQLException: Invalid column type
Cause:
A. the Data Type of the incoming, OUT, or typeHandler parameters IN ibatis does not match the data type of the attribute values IN the Oracle custom object;
B. What is in the call SQL
The processing process of an explicit cursor includes:
Declare the cursor, open the cursor, search the cursor, and close the cursor.
Declared cursor
CURSOR c_cursor_name IS statement;
A cursor is equivalent to a query result set. The query result is
Run tkprof in the system to convert the trace file into a format that can be read by humans.(I personally don't feel very good. I don't need to get a good format when the trace file is output)
Syntax:Tkprof tracefile
What is the difference between DELETE and TRUNCATE?
Delete, truncate,
They all delete the data in the table, but cannot delete the table structure. delete can delete the data of the entire table or delete one or more data that meet the conditions
DBMS_RANDOM.STRING (var1, var2)
This function has two parameters.
The var1 parameter values include u, l, a, x, and p.
U --> uppercase
L --> lowercase
A --> mixed case
X --> uppercase, alpha & numeric
P --> any printable char
The above
Concept: Database: a warehouse that organizes, stores, and operates data in batches. Data Warehouse is a basic term in the database field. Here it refers to its conventional meaning.
Database Management System (DBMS): A software module used to
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