Open chunvv opened 5 years ago
engineer
MySQL CONSTRAINTs
, list up all constraints?
* NOT NULL
* UNIQUE
* PRIMARY KEY
* FOREIGN KEY
* CHECK
* DEFAULTs
Examples for check
:
CREATE TABLE IF NOT EXISTS
newbook_mast (book_id varchar(15) NOT NULL UNIQUE,
book_name varchar(50) ,
isbn_no varchar(15) NOT NULL UNIQUE ,
cate_id varchar(8) ,
aut_id varchar(8) ,
pub_id varchar(8) ,
dt_of_pub date ,
pub_lang varchar(15) ,
no_page decimal(5,0)
CHECK(no_page>0) ,
book_price decimal(8,2) ,
PRIMARY KEY (book_id)
);
CREATE TABLE IF NOT EXISTS
newauthor(aut_id varchar(8) NOT NULL ,
aut_name varchar(50) NOT NULL,
country varchar(25) NOT NULL CHECK (country IN ('USA','UK','India')),
home_city varchar(25) NOT NULL,
PRIMARY KEY (aut_id,home_city));
WHERE CustomerName LIKE 'a%' WHERE CustomerName LIKE '%a' WHERE CustomerName LIKE '%or%' WHERE CustomerName LIKE '_r%' WHERE CustomerName LIKE 'a__%' WHERE ContactName LIKE 'a%o'
union, union all, minus, intersect
?=> Check one again here
Triggers
?View
in MySQL?Points:
Refer:
昼会:
Main purpose of hirukai in the company (KPT method):
But we are working on teh different company,so we will follow the following questions:
From Tai Tran:
From Trung Vu:
From Quang Minh:
From Son Tran:
From Duc Phan:
From Quy Vu:
MySQL High-Performance Workshop on 09 June 2019
Topic: MySQL High-Performance
Content:
Information: