校园网新视野教育 www.xiaoyuan.com
INNER JOIN: Returns all rows when there is at least one match in BOTH tables
LEFT JOIN: Return all rows from the left table, and the matched rows from the right table, the
result is NULL in the right side when there is no match
RIGHT JOIN: Return all rows from the right table, and the matched rows from the left table
FULL JOIN: Return all rows when there is a match in ONE of the tables
SQL CREATE TABLE + CONSTRAINT Syntax
CREATE TABLE table_name
(
column_name1 data_type(size) constraint_name,
column_name2 data_type(size) constraint_name,
column_name3 data_type(size) constraint_name,
....
);
In SQL, we have the following constraints:
NOT NULL - Indicates that a column cannot store NULL value
UNIQUE - Ensures that each row for a column must have a unique value
PRIMARY KEY - A combination of a NOT NULL and UNIQUE. Ensures that a column (or combination of two or
more columns) have an unique identity which helps to find a particular record in a table more easily and quickly
FOREIGN KEY - Ensure the referential integrity of the data in one table to match values in another table
CHECK - Ensures that the value in a column meets a specific condition
DEFAULT - Specifies a default value when specified none for this column
C 语言最重要的知识点复习资料
这个 a 版本,还会进行改正和补充,请大家认真熟悉这些基础知识!如有错误,请拨打 18674887911!
总体上必须清楚的:
1)程序结构是三种: 顺序结构 、选择结构(分支结构)、循环结构。
2)读程序都要从 main()入口, 然后从最上面顺序往下读(碰到循环做循环,碰到选择做选择),
有且只有一个 main 函数。
3)计算机的数据在电脑中保存是以 二进制的形式. 数据存放的位置就是 他的地址.
4)bit 是位 是指为 0 或者 1。 byte 是指字节, 一个字节 = 八个位.
概念常考到的:
1、编译预处理不是 C 语言的一部分,不占运行时间,不要加分号。C 语言编译的程序称
为源程序,它以 ASCII 数值存放在文本文件中。
2、define PI 3.1415926; 这个写法是错误的,一定不能出现分号。
3、每个 C 语言程序中 main 函数是有且只有一个。
4、在函数中不可以再定义函数。
5、算法:可以没有输入,但是一定要有输出。
6、break 可用于循环结构和 switch 语句。
7、逗号运算符的级别最低,赋值的级别倒数第二。
新视野全体老师祝大家考试顺利,学习进步!
评论0
最新资源