摘要: 1、创建表的同时创建主键约束(1)无命名 create table student ( studentid int primary key not null, studentname varchar(8), age int);(2)有命名 create table students ( studen... 阅读全文
posted @ 2015-11-10 16:56 李清欣 阅读(246) 评论(0) 推荐(0) 编辑
摘要: -创建表格语法: create table 表名( 字段名1 字段类型(长度) 是否为空, 字段名2 字段类型 是否为空);-增加主键 alter table 表名 add constraint 主键名 primary key (字段名1);-增加外键: alter table 表名 add co... 阅读全文
posted @ 2015-11-10 16:09 李清欣 阅读(6674) 评论(0) 推荐(1) 编辑
摘要: (1)在段落前给每一行加序号从0开始:${a_index}从1开始:${a_index+1}(2)标记说明【文章导航】:[@cms.Position /]【文章标题】:${arti.title}【简短标题】:${arti.shortTitle}【文章作者】:${arti.author}【发布日期】:... 阅读全文
posted @ 2015-11-10 15:30 李清欣 阅读(447) 评论(0) 推荐(0) 编辑
摘要: (1)修改数据表中某个字段值为空:update 表明 别名 set 别名.字段名例子:update JWT_JYWF t set t.jdsbh=''(2)设置数据表中某个字段值和rownum相同:update 表名 别名 set 别名.字段名=rownum例子:update JWT_JYWF t... 阅读全文
posted @ 2015-11-10 15:27 李清欣 阅读(645) 评论(0) 推荐(0) 编辑