上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: CREATE TABLE t_user3( id NUMBER PRIMARY KEY, user_name VARCHAR2(20), birt_date date -->>java.util.Date(包含日期+时间) ) INSERT INTO t_user3 VALUES (1,'小明',t 阅读全文
posted @ 2018-03-16 14:52 会玩代码的摄影师 阅读(346) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE t_user3( id NUMBER PRIMARY KEY, user_name VARCHAR2(20), birt_date date -->>java.util.Date(包含日期+时间))INSERT INTO t_user3 VALUES (1,'小明',to_ 阅读全文
posted @ 2018-03-16 09:35 会玩代码的摄影师 阅读(233) 评论(0) 推荐(0) 编辑
摘要: -- 与数学有关系的集合() -- 单条语句 select * from t_ke where ke_name like '%数学%' or ke_name='马克思主义' select * from t_ke where ke_name like '%数学%' union all select * 阅读全文
posted @ 2018-03-15 09:57 会玩代码的摄影师 阅读(158) 评论(0) 推荐(0) 编辑
摘要: -- 多对多的秘密:项目中,往往把关系分拆出一张单独表 --维表(学生维度) create table t_stu( id number primary key, user_name varchar2(10) ); insert into t_stu values(1,'小军'); insert i 阅读全文
posted @ 2018-03-14 15:21 会玩代码的摄影师 阅读(128) 评论(0) 推荐(0) 编辑
摘要: -- 一对多 (订单order,订单明细orderDetail) -- 主从表 -- 订单表 create table t_order ( order_id number primary key, today date, desk_num varchar2(10) ); insert into t_ 阅读全文
posted @ 2018-03-14 15:19 会玩代码的摄影师 阅读(192) 评论(0) 推荐(0) 编辑
摘要: select * from user1 select * from dicts -- 多对一(字典类应用) drop table user1; create table user1( id varchar2(10), username varchar2(20), sex varchar2(10), 阅读全文
posted @ 2018-03-14 15:19 会玩代码的摄影师 阅读(253) 评论(0) 推荐(0) 编辑
摘要: -- 一对一 -- 身份证表 CREATE TABLE idcard ( idcard_num CHAR(18) PRIMARY KEY, name VARCHAR2(20), address VARCHAR2(100), minzu VARCHAR2(20) ); -- 学生表 CREATE TA 阅读全文
posted @ 2018-03-14 15:17 会玩代码的摄影师 阅读(203) 评论(0) 推荐(0) 编辑
摘要: create table test1111( id number(10) primary key, username varchar2(100) ); create sequence myseq; select myseq.nextval from dual select myseq.currval 阅读全文
posted @ 2018-03-14 15:16 会玩代码的摄影师 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 008-SQL分类、数据类型、序列 分类: 1、DDL(定义语句)create,alter,drop 不需要commit 1、DML(操纵语句) Insert ,update,delete Select ....for update 阅读全文
posted @ 2018-03-09 10:43 会玩代码的摄影师 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 数据洁癖 --1、创建临时表空间 create temporary tablespace oa_temp tempfile 'c:\data\oa_temp_001.dbf' size 1024m extent management local; --2、创建用户数据表空间 create table 阅读全文
posted @ 2018-03-09 10:40 会玩代码的摄影师 阅读(175) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页