Database Management System and SQL
Database Management System and SQL
  • Database Management System and SQL
  • Database
    • Introduction to Database
      • Definition
      • File System
      • Different types of Database
      • Uses of DBMS
      • Basic Terms in Database
      • Query Language
    • View of Data
      • Data Abstraction
      • Schema & Instance
      • Data Models
    • Database Architecture
      • DBMS Tier Architecture
      • Three Schema Architecture
      • Data Independence
    • Relational Database Management System (RDBMS)
      • Entity-Relationship (ER) Model
      • Attributes
      • Keys
      • Relationship
    • Functional Dependencies
    • Normalization
  • MySQL
    • Terminology
    • Database Statements
    • Table
      • Data Type
      • Create
      • Show
      • Describe
      • Drop
      • Alter
      • Auto Increment
      • Index
    • Insert
    • Select
      • Condition
      • Aggregate Functions
      • Join
    • View
    • Delete
    • Update
    • MySQL Constraints
      • NOT NULL
      • DEFAULT
      • CHECK
      • UNIQUE
      • PRIMARY KEY
      • FOREIGN KEY
Powered by GitBook
On this page

Was this helpful?

  1. MySQL
  2. MySQL Constraints

DEFAULT

CREATE TABLE IF NOT EXISTS `teacher`(
	`teacher_id` CHAR(12) NOT NULL,
	`teacher_name` VARCHAR(40) NOT NULL,
	`teacher_dept` VARCHAR(4) NOT NULL,
	`teacher_phone` CHAR(11) DEFAULT "00099900099",
	`teacher_email` CHAR(11) DEFAULT NULL
);
PreviousNOT NULLNextCHECK

Last updated 8 months ago

Was this helpful?