IT: Create statements in SQL

So what is the benefit of SQL, also known as Oracle? Well you can keep track of your customers records easily for one thing. Second, it is secure, so no one, unless you give them permission, will access this information. Below you will see one of the basics of SQL.

Create statements in SQL:

Example 1:

Create Table CUSTOMER

(CUST_ID number(6) primary key,

CUST_NAME char (12),

Year_born number(4));

Example 2:


(CUST_ID number (6) references CUSTOMER,

Ice_cream_ID number (15) references ICECREAM,

primary key (CUST_ID, Ice_cream_ID));

Leave a Reply