--创建一个银行表
create table bank(
月份 varchar2(100) primary key,
借方金额 number(10,2) not null,
贷方金额 number(10,2) not null,
凭证号 number(10,2) not null,
科目名称 varchar2(100) not null
)
insert into bank values (sys_guid(),'一月份', 100, 0, 01, '库存现金');
commit;
select *from bank;
---创建表结构
create table bank1(
ID_B varchar2(100) primary key,
月份 varchar2(100) not null,
借方金额 number(10,2) not null,
贷方金额 number(10,2) not null,
凭证号 number(10,2) not null,
科目名称 varchar2(100) not null
)
select *from bank1;
insert into bank1 values (sys_guid(),'一月份', 100, 0, 01, '库存现金');
commit;
insert into bank1 values (sys_guid(),'一月份', 0, 90, 01, '库存现金');
commit;
insert into bank1 values (sys_guid(),'一月份', 100,0, 01, '库存现金');
commit;
insert into bank1 values (sys_guid(),'一月份', 0,110, 01, '库存现金');
commit;
insert into bank1 values (sys_guid(),'一月份', 300,0, 02, '银行存款');
commit;
insert into bank1 values (sys_guid(),'一月份', 0,300, 02, '银行存款');
commit;
insert into bank1 values (sys_guid(),'二月份', 0,0, 03, '信托投资');
commit;
insert into bank1 values (sys_guid(),'三月份', 100,0, 04, '应缴税费');
commit;
Oracle数据库之创建表
最新推荐文章于 2024-06-17 21:28:28 发布