create table salary
来源:百度知道 编辑:UC知道 时间:2024/05/24 15:09:53
create table salary
(sa_id int identity(06211000,1) primary key not null,
em_no int not null,
sa_base money not null,
sa_jiang money not null default '0',
sa_fa money not null default'0',
sa_finally money not null,
foreign key (em_id) references employee(em_id),
constraint a check (sa_finally=sa_base+sa_jiang-sa_fa),
)
我想让sa_finally(最终工资)自动计算,应试如何实现呀?老大。
(sa_id int identity(06211000,1) primary key not null,
em_no int not null,
sa_base money not null,
sa_jiang money not null default '0',
sa_fa money not null default'0',
sa_finally money not null,
foreign key (em_id) references employee(em_id),
constraint a check (sa_finally=sa_base+sa_jiang-sa_fa),
)
我想让sa_finally(最终工资)自动计算,应试如何实现呀?老大。
加触发器!
create table salary
(sa_id int identity(06211000,1) primary key not null,
em_no int not null,
sa_base money not null,
sa_jiang money not null default '0',
sa_fa money not null default'0',
sa_finally as sa_base+sa_jiang-sa_fa,
foreign key (em_id) references employee(em_id),
)
create table
请问Oracle 中create any table 和create table权限的区别是什么?
ASP " CREATE TABLE NE1 (name1 TEXT(32))")
怎样在visual foxpro用create table 建表
用sql语法create table在线生成表时自动编号的数据类型怎么弄?
create table tab_new like tab_old (使用旧表创建新表)?
怎样判断java的statement执行create table 等ddl时是否成功
谁能给个SQL中用CREATE TABLE 创建数据库表的事例
使用create table 后立即执行insert into,结果不识别新建立的表?
is create