Oracle database Common keywords and notation

Source: Internet
Author: User

Database Common keywords:

CREATE TABLE --- Create a table

Create a table with table name (column name type of column, column name Type of column ... )

CREATE TABLE Z_course (ID number, Cour_code VARCHAR2 (), Cour_name VARCHAR2 (), p_cour_code VARCHAR2 ());

INSERT INTO---inserting data

Insert data table name (table's column type)

The value to be inserted (data that conforms to the type of the column, several columns are written, and the type of the column is to be met)

INSERT into Z_course (ID, Cour_code, cour_name, P_cour_code)

values (1, ' LAU-100 ', ' Major in Chinese language and literature ', null);

Delete---Remove data

Delete Table name restrictions when conditions why, data is deleted from the table

Delete emp e where e.empname= ' jjj ';

Update---Updates a single piece of data

Change table Name set a property Why do data changes to a table when the condition is?

Update emp e set e.empname= ' QQQQ ' where e.id=4;

Select---query data (in the actual work do not write *,* represent all, for the larger the data will affect the speed of operation, you can give the table plus variable name, represented by a letter, and then the letter. You can get the columns that need to be displayed in the table, and multiple columns can be separated by commas.

Query all Columns (*) from table name

SELECT * from Z_student;

Query a column of names within a table

Select S.name from Z_student s;

WHERE---impose a constraint on the executed statement

Set---certain properties

Oracle database Common keywords and notation

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.