Oracle DDL L2
Oracle DDL L2
• Table-level constraint:
column,...
[CONSTRAINT constraint_name] constraint_type
(column, ...),
SQL Creating Tables
SQL Create Table statements
The CREATE TABLE statement is used create a new table in the database. A table definition
consists of a list of columns, their types, and any integrity constraints.
Statements that are used to create a table are divided into three forms:
Table-level constraint:
The TRUNCATE TABLE statement is used to delete the data inside a table, but not the table itself.
DROP TABLE :
الشروط المطلوبة:
التعديالت المطلوبة على الجدول:
.1رقم الكتاب عبارة عن شرط فريد وغير فارغ.
.1غير اسم الجدول من Booksالى Book
.2التحقق من التاريخ حال إذا كان أكبر من .2009
.2اختصر اسم تاريخ اإلصدار الى مسمى قصير.
.3التحقق من تنصيف الكتاب بحيث يكون ضمن اآلتي:
.3غير حجم البيانات الخاصة بالتصانيف من 20
(تاريخي – ديني – سياسي – علوم – فيزياء -
الى 30
حاسوب)
.4اضف مفتاح رئيسي الى رقم الكتاب.
Resources
SQL at:
Javatpoint
W3schools
dba-oracle
blog.devart
stackoverflow