用SQL创建费用支出的表

来源:百度知道 编辑:UC知道 时间:2024/07/01 11:57:05
用SQL语句建个班费支出的表

create table 班费明细表 (
序号 int identity(1,1) not null primary key,
时间 datetime not null,
用途 varchar(max),
领用人 user_name varchar(10),
付款人 audit_name varchar(10),
支出金额 decimal(10,2),
结余金额 decimal(10,2)
)

一个简单的例子
create table banfei (
id int not null primary key,
xiangmu varchar(10) not null,
type char(4),
fieyong money,
date datetime,
person varchar(10)
)