水的密度和温度的对照表 SQLServer库

本文展示了如何在SQLServer数据库中创建一个名为basWaterDensityWithTemp的表,用于存储不同温度下的水的密度和焓值数据。表包含温度、密度和焓值等字段,并插入了从1到100摄氏度的数据记录。
摘要由CSDN通过智能技术生成

if not exists (select 1 from sysobjects where name = ‘basWaterDensityWithTemp’)
create table basWaterDensityWithTemp
(
Id int identity,
Temp decimal(10,2) not null unique,
TUnit varchar(10) default ‘℃’,
Density decimal(13,4) not null,
DUnit varchar(10) default ‘kg/m3’,
WaterEnthalpy decimal(13,4),
EDUnit varchar(10) default ‘’
)
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 1,1000.2,4.7841
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 2,1000.2,8.9963
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 3,1000.2,13.206
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 4,1000.2,17.412
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 5,1000.2,21.616
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 6,1000.2,25.818
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 7,1000.1,30.018
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 8,1000.1,34.215
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 9,1000,38.411
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 10,999.94,42.605
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 11,999.84,46.798
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 12,999.74,50.989
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 13,999.61,55.178
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 14,999.48,59.367
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 15,999.34,63.554
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) select 16,999.18,67.74
insert into basWaterDensityWithTemp(Temp,Density,WaterEnthalpy) sel

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

快乐withus

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值