创建表: CREATE TABLE countries( country_code char(2) PRIMARY KEY, country_name text UNIQUE ); 插入数据: INSERT INTO countries(country_code,country_name) VALU
分类:
数据库 时间:
2016-02-25 22:59:25
阅读次数:
219
在给study用户下的semp表建立主键的时候,出现以下错误:SQL> alter table semp add constraint pk_emp primary key(empno);alter table semp add constraint pk_emp primary key(empno
分类:
其他好文 时间:
2016-02-25 17:01:02
阅读次数:
145
如果通过shell访问mongo,要在secondary进行查询。会出现如下错误:[root@mongodb-secondary2~]#mongo
MongoDBshellversion:3.0.9
connectingto:test
abc:SECONDARY>showdbs
2016-02-20T02:13:18.527+0800EQUERYError:listDatabasesfailed:{"note":"fromexecCommand","ok":0..
分类:
数据库 时间:
2016-02-23 16:02:36
阅读次数:
345
模态框 <h2>创建模态框(Modal)</h2> <!-- 按钮触发模态框 --> <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal"> 开始演示模态框 </button> <!-- 模
分类:
其他好文 时间:
2016-02-22 01:35:34
阅读次数:
294
MySQL数据定义语句主要是创建、修改、删除表,增加,修改,删除字段的操作 创建表:CREATE TABLE 表名(属性名 数据类型 约束条件, 属性名 数据类型 约束条件, 属性名 数据类型 约束条件, 属性名 数据类型 , ); 完整约束条件:PRIMARY KEY 主键FOREIGN KEY
分类:
数据库 时间:
2016-02-22 01:33:54
阅读次数:
263
1. 设置系统默认的分辨率 xrandr 命令: > xrandr Screen 0: minimum 1 x 1, current 1920 x 1080, maximum 8192 x 8192Virtual1 connected primary 1920x1080+0+0 (normal le
分类:
系统相关 时间:
2016-02-21 19:57:47
阅读次数:
301
1. 创建表 CREATE TABLE table_name( field1 data_type [not null], ... field5 data_type [not null], );例子:CREATE TABLE Student( Sno char(7) not null primary
分类:
数据库 时间:
2016-02-20 22:49:59
阅读次数:
192
ZC:数据库名/表名/字段名 都使用小写字母 1、创建表(指定字符编码:utf8) create table dbadmin ( id integer auto_increment primary key, username varchar(50) not null, password varcha
分类:
数据库 时间:
2016-02-20 21:33:02
阅读次数:
216
DataAnnotations - InverseProperty Attribute: We have seen in the Code-First Convention section that Code-First creates {Class Name}_{Primary Key} fore
分类:
其他好文 时间:
2016-02-20 20:23:40
阅读次数:
259
mysql索引的创建 -- 索引的创建(创建表的时候同事添加索引)create table index1(id int primary key not null,name varchar(32) not null,age int not null,intro varchar(200),unique
分类:
数据库 时间:
2016-02-20 00:22:47
阅读次数:
217