MyBatis itself is very flexible, because you can write SQL in the XML file to operate, it can be inserted into the database at one time, so that only once submitted to the database, performance can be improved a lot. Here's an example:
First, add an
1, query the records of the first few lines
Select Sal from EMP where rownum=1; Query gets the first line of records
Select Sal from EMP where rownum=5; You cannot query to line fifth records, because RowNum is always queried from 1, so it is not
The definition of a multiple-table view is a single table view when the data source for the view has only one datasheet, and the view is a multiple-table view when the data source of the view is multiple data tables.Updatable view definition: In the
Today, a person in the department asked me how to trace from a child node record to a parent node in Oracle. For example, there is a table:
GUID Parentguid
1 0
2 1
3 1
4 2
5 2
6 5
7 5
8 7
We can detect all the child nodes under the GUID
Portable Table Space transport tablespacePortable table Space
The ability to move large amounts of data between databases using the properties of the portable tablespace (transportable tablespaces) is much faster than Export/import and Unload/load,
Today the program works locally and can be posted to the server The Times a ORA-00911 invalid character error
This error is due to a problem with the SQL statement, check the SQL did not see any problems, the results were taken to the library inside
The disk of the Oracle installation directory is fully stretched, causing the Oracle database to hang, querying the Internet for a solution that is divided into two ways:
One, mobile table space files
1, modify the table space offline state
ALTER
Today colleagues let me delete a table of data, happy to say yes;
It looks like a simple task, it can be tricky to do, originally this table is a foreign key constraint, as a primary table exists.
But I just got in touch with the system, but it's
If only the scope partition is considered, and there are no child partitions, Oracle determines that the local index table space follows the following two principles:
1. If the table space is explicitly specified when the local index of the
Each group of queries can get its result set, if the need to combine multiple query results into a result set, can be implemented by the set operation.
such as union, and set, and do not remove duplicate rows (unoin all), intersections (INTERSECT),
1, transaction slot update delete contention transaction slot each block has a data slot 2, 1 million partition 100 million partition difference ...
100 million The amount of data can be considered sub-division table partition Reasonable query
* This import export method is fully applicable to the partition table * prepare before exporting, importing
Note: Use System user actions such as SYS, systems, and so on.1) Create directory objects
CREATE DIRECTORY exp_dir as '/oracle/db/zone ';
For some reason, Oracle on the old computer is often disconnected, and the newly bought computer is normal, and all three-party software that connects to Oracle is disconnected, like pl/sql.
So, I wonder what the cause is.
1, here to cite a
First from a Lezilai said: We often hear that the number of users of such a website dozens of, thousands of, millions of or even tens of millions, while the number of online users have tens of thousands of, hundreds of thousands of.
From this column
Oracle Stored procedures:
CREATE OR REPLACE PROCEDURE getcity (
citycode in VARCHAR2,
ref_cursor out sys_refcursor/ * This sys_refcursor type is in the Sys.standard package * *
) as
BEGIN
OPEN ref_cursor for
SELECT * from
--================ Oracle ADG operations and Maintenance ================--======== Test Log Transfer ========1. On primary, view the last archived log, Force log switchoverALTER SESSION SET nls_date_format= ' dd-mon-yyyy HH24:MI:SS ';SELECT
Oracle creates a new database, which is a table space that is created to assign a table space to a user.1. Create TABLE Spaces :CREATE TABLESPACE DATAFILE ‘C:\app\oradata\orcl\date.dbf‘ SIZE [K|M] [AUTOEXTEND [OFF|ON]];2. Create a user :CREATE USER
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