zoukankan
html css js c++ java
接规则,每三个一组编一个号
create
table
#examinees(exam_number
varchar
(
16
), room
int
)
insert
#examinees(exam_number)
select
'
100100010001
'
union
all
select
'
100100010002
'
union
all
select
'
100100010003
'
union
all
select
'
100100010004
'
union
all
select
'
100100020001
'
union
all
select
'
100100020002
'
union
all
select
'
100100020003
'
union
all
select
'
100100020004
'
union
all
select
'
100100020005
'
union
all
select
'
100100040001
'
union
all
select
'
100100050001
'
union
all
select
'
100100060001
'
union
all
select
'
100100060002
'
union
all
select
'
100100060003
'
union
all
select
'
100100060004
'
union
all
select
'
100100060005
'
union
all
select
'
100100060006
'
select
*
from
#examinees
update
a
set
room
=
(
select
sum
((rs
+
2
)
/
3
)
from
(
select
rs
=
count
(
*
)
from
examinees
where
substring
(exam_number,
7
,
2
)
<
substring
(a.exam_number,
7
,
2
)
or
(
substring
(exam_number,
7
,
2
)
=
substring
(a.exam_number,
7
,
2
)
and
exam_number
<=
a.exam_number)
group
by
substring
(exam_number,
7
,
2
)) b )
from
examinees a
查看全文
相关阅读:
VS10的一个问题
有关开发的配置的有用信息
管理Fragments(转)
消除SDK更新时的“https://dl-ssl.google.com refused”异常--(转)
JAVA字符串编码转换常用类
在 Android 中调用二进制可执行程序(native executable )
Android NDK 下的宽字符编码转换及icu库的使用(转)
Linux字符编码转换 UTF8转GB3212
一键生成JNI头文件方法二
eclipse中创建NDK和JNI开发环境最简单配置方法
原文地址:https://www.cnblogs.com/Ammy/p/1219333.html
最新文章
swiper-demo1
swiper的理解
Spring MVC例子
struts的MVC和spring的MVC的区别
Ajax二级联动下拉列表
WEB-INFO/lib & build path 的jar包问题
java web 使用json要加入的jar 文件
spring学习3-第一次测试成功
Hibernate get和load区别
android图片加载,有服务器
热门文章
spring问题1
spring学习2
CUDA学习笔记(三)
ROC
GPU学习笔记(二)
GPU开发笔记(一)
在cncc的最后几天的笔记
一些标签库的学习和do的讨论
最近Criteria
webi和universe
Copyright © 2011-2022 走看看