How to create a table and what to look for in a design table

Source: Internet
Author: User

1, table: is the database used to store data to understand the object, is a collection of structured data, is the basis of the entire database system. The concept of everything is abstract, in fact, the table is used to store data.

2, the composition of the table

DESC Dept

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/57/35/wKiom1SUNXmAyYMpAACMkUKxlCE634.jpg "title=" Qq20141219222619.png "alt=" Wkiom1sunxmayympaacmkukxlce634.jpg "/>

DEPTNO: The column type is number (2), which means that the value of the column allows only a maximum of two characters (an English character or a number of one character, and a Chinese character occupies two characters), the number can be 1 or 99, but not 100 (this is 3 characters); Null indicates that the inserted data cannot be empty.

Dname: The column type is VARCHAR2 (14), which indicates that the column allows a maximum of 14 characters. That is, the department name cannot exceed 14 English letters or 7 Chinese characters, and this column does not have NULL, that is, no value can be entered.

LOC: The column type is VARCHAR2 (13), which indicates that the column allows a maximum of 13 characters. Is that the location name cannot exceed 13 English letters or 6 characters, and this column does not have NULL, that is, no value can be entered.

3. The underlying column has those constraints

Number: The Arabic numerals are represented

The text represents a string

How to create a table and what to look for in a design table

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.