--创建数据库(create database 数据库名)create database hq20161114go --使用选择数据库(use 数据库名)use hq20161114go --创建学生表(create table 表名( 列名 列类型,列名 列类型……)  )create table xuesheng( code int, name varchar(10), sex char(10), chengji decimal(18,2)) --添加学生信息(insert into 表名…
2016年11月14日 星期一 --出埃及记 Exodus 20:5 You shall not bow down to them or worship them; for I, the LORD your God, am a jealous God, punishing the children for the sin of the fathers to the third and fourth generation of those who hate me, 不可跪拜那些像,也不可事奉它,因…
主键 数据库主键是指表中一个列或列的组合,其值能唯一地标识表中的每一行.这样的一列或多列称为表的主键,通过它可强制表的实体完整性.当创建或更改表时可通过定义 PRIMARY KEY约束来创建主键.一个表只能有一个 PRIMARY KEY 约束,而且 PRIMARY KEY 约束中的列不能接受空值.由于 PRIMARY KEY 约束确保唯一数据,所以经常用来定义标识列. 主键的作用 主键的主要作用如下: (1)保证实体的完整性: (2)加快数据库的操作速度: (3) 在表中添加新记录时,数据库会自…
2016年11月23日 星期三 --出埃及记 Exodus 20:14 "You shall not commit adultery.不可奸淫.…
本周MySQL verified的bug列表(11月8日至11月14日) 1. Bug #70859-DWITH_EXAMPLE_STORAGE_ENGINE=1 is ignored     URL: http://bugs.mysql.com/bug.php?id=70859     备注:CMake的问题,导致无法把Example_storage_engine编译进binary,此bug可忽略:   2.Bug #70863Wrong error message on a failed A…
2016年12月14日 星期三 --出埃及记 Exodus 21:9 If he selects her for his son, he must grant her the rights of a daughter.主人若选定她给自己的儿子,就当待她如同女儿.…
2016年11月30日 星期三 --出埃及记 Exodus 20:21 The people remained at a distance, while Moses approached the thick darkness where God was.于是百姓远远地站立,摩西就挨近 神所在的幽暗之中.…
2016年11月29日 星期二 --出埃及记 Exodus 20:20 Moses said to the people, "Do not be afraid. God has come to test you, so that the fear of God will be with you to keep you from sinning." 摩西对百姓说,不要惧怕,因为 神降临是要试验你们,叫你们时常敬畏他,不致犯罪.…
2016年11月28日 星期一 --出埃及记 Exodus 20:19 and said to Moses, "Speak to us yourself and we will listen. But do not have God speak to us or we will die."对摩西说,求你和我们说话,我们必听,不要 神和我们说话,恐怕我们死亡.…
2016年11月27日 星期日 --出埃及记 Exodus 20:18 When the people saw the thunder and lightning and heard the trumpet and saw the mountain in smoke, they trembled with fear. They stayed at a distance 众百姓见雷轰,闪电,角声,山上冒烟,就都发颤,远远地站立.…