首页 / 汽车知识 / 正文
汽车租借管理系统 数据结构课程设计

Time:2024年06月12日 Read:113 评论:0 作者:访客

给你一个sql语句吧
ms sqlserver
use master

if exists(select * from sysdatabases where name='TaxiManage')
drop database TaxiManage

create database TaxiManage
on primary
(
name = 'TaxiManage_data',
filename='c:prjectTaxiManage_data.mdf',
size=5mb,
maxsize=10mb,
filegrowth=10%
)
log on
(
name='TaxiManage_log',
filename='c:prjectTaxiManage_log.ldf',
size=1mb,
maxsize=3mb,
filegrowth=5%
)
go
use TaxiManage
if exists(select * from sysobjects where name='TaxiTable')
drop table TaxiTable

create table TaxiTable
(
ID bigint identity(0,1) not null,
TaxiNum varchar(20) not null,
TaxiMasterName varchar(20) not null,
TaxiMasterID int not null,
TaxiWokerName varchar(20) not null,
TaxiWokerID int not null,
IsOut int not null
)
go

alter table TaxiTable
add constraint PK_ID primary key (ID)

insert into TaxiTable(TaxiNum,TaxiMasterName,TaxiMasterID,TaxiWokerName,TaxiWokerID,IsOut)values('1','1',1,'1',1,1)
--delete TaxiTable where id=@@identity
select * from TaxiTable

select * from TaxiTable where TaxiNum='1' or TaxiMasterName='1' and TaxiMasterID=1 or TaxiWokerName='ddd' or TaxiWokerID=1 or IsOut=0

标签: 数据结构  租借  管理系统 

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们
以汽车主要产地,集散地建立的批发市场为龙头,带动周边汽车零售市场,以市场价格机制为纽带形成的网络市场。组建中国汽车连锁市场是为了促进横向经济联合和协作,并向纵深层次发展,以加速开发短线资源,实现保供促销,提高企业经济效益和管理水平,促进汽车工业和汽车市场健康发展
联系我们
369169688
业务合作
www.eshc168.com
走进168二手车
www.eshc168.com
扫码关注
公司致力于汽车二手交易信息,如有侵权行为,我们会立即删除
1123