SQL definition: SQL is a general data processing language specification for databases. It can perform the following functions: extract and query data, insert and modify data, and delete data, and generate and modify database objects, database
Role of database view
09:36:42 | category:Sybase | font size subscription
I wrote my understanding of the view into this post and discussed it with everyone. A view has the following functions:
1. Simplify applications.
As an entity in the database,
We will certainly encounter the situation of backing up the database and restoring the database during the operation of the project. We generally use the following two methods to deal with it:
1. Use into outfile and load data infile to import and
The at command allows you to specify a specific date and time to run a program. For example, I can start playing music on my CDROM at seven o'clock every morning:
At 7: 00
Cdplay
In the preceding example, enter "at" in the command line
1. Database Management System (DBMS) is a system software that consists of an interconnected data set and a group of program structures that access data.
2. In the database system, data duplication is caused by data redundancy.
3. The databases in
First, you must have a table!Create Table example (ID number (4) not null primary key,Name varchar (25 ),Phone varchar (10 ),Address varchar (50)
);
Then, you need a custom SequenceCreate sequence emp_sequenceIncrement by 1 -- add severalStart with 1
Drop table # TMP -- delete a temporary table # TMP
Create Table # TMP -- create a temporary table # TMP
(
Id int identity () not null, -- creates a column ID and Adds 1 to each new record.
Wokno varchar (50 ),
Primary Key (ID) -- Define ID as a
First, you must have a table!Create Table example (ID number (4) not null primary key,Name varchar (25 ),Phone varchar (10 ),Address varchar (50)
);
Then, you need a custom SequenceCreate sequence emp_sequenceIncrement by 1 -- add severalStart with 1
Document directory
Getoledbschematable method of oledbconnection object
Example of creating a list of tables in a database
Example of creating a retrieval table Architecture
Example of creating a column listing a table
Example of creating a
Obtain two random records from table A and use select top 10 * From ywle order by newid ()Order by is generally sorted by a certain field. The return value of newid () is uniqueidentifier. How does order by newid () randomly select records?Newid ()
Differences between in and exists In performs hash join on the External table and the internal table, while exists performs loop on the External table. Each loop then queries the internal table.
The argument that exists is more efficient than in
To_date ('2017-3-24 ', 'yyyy-MM-DD hh24: MI: ss ')
Source: http://www.hkln.net/doc/oracle/ SQL /function.htm#a8
Introduction
Next Shard to shard
Oracle provides some basic data types for Data calculation. These data types can be
1. When selecting records from multiple tables: (table name order)
The execution sequence is from right to left, that is, to the right where the number of table records is small, that is, the most basic table. If more than three tables are used for
Open SQL statements include select, insert, update, modify, delete, open cursor, fetch, close cursor, commit work, and rollback work.
1. SELECT statementSyntax format:Select [into ] [from ] [where ][Group by ] [order by ]Where: specifies the field
6. One-to-multiple table relationships.
[Aggregated] No Parameter
Implement the cascade deletion function of two persistent classes. Simply put, if the aggregated parameter is added, the records associated with the sub-table are also deleted
From: http://hi.baidu.com/freeperson/blog/item/2f9eafd48a693909a08bb70f.html
Here we provide optimization of the execution performance, rather than the background database optimizer:
According to various issues in database development
1. Find the number of repeated records for the specified field in the table Answer:Select [FIeld1], [FIeld2], [FIeld3], [...], Count (*) from [tablename] Where [condition] group by [FIeld1], [FIeld2], [FIeld3], [...] Having count (*)> 12. TableThe
For example, in the past, we had to write a lot of things on the registration interface. At the front end, we had to use various text input boxes, and some also used select and checkbox to provide users with various information, whether in JSP or
Script table
If the tables described above are single-step and single-method tables. Script table is a series of multi-step operations, as the name represents.
The first entry in the header is followed by a script: prefix, or a script, followed by a
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.