会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
三少的天空
我要一步一步往上爬, 在最高点乘着叶片往前飞, 让风吹干流过的泪和汗, 总有一天我有属于我的天.
博客园
首页
新随笔
联系
订阅
管理
查询哪些学生没有做课程注册
Code
use
prtvu
go
declare
@@nj
char
(
4
)
declare
@@jj
char
(
2
)
declare
@@mm
int
declare
@@cur
datetime
set
@@cur
=
getdate
()
set
@@nj
=
cast
(
datepart
(
year
,
@@cur
)
as
char
(
4
))
set
@@mm
=
cast
(
datepart
(
month
,
@@cur
)
as
int
)
set
@@jj
=
case
when
@@mm
>
8
then
'
09
'
else
'
03
'
end
select
xh,xm,bmc,dwmc,jjmc
from
zxsdab
where
xh
not
in
(
select
distinct
xh
from
xsxkjgb
where
nd
=
@@nj
and
xqdm
=
@@jj
)
and
xjztdm
=
'
1
'
order
by
dwmc,bmc,xh,xm
posted @
2009-11-10 11:05
步三少
阅读(
130
) 评论(
0
)
收藏
举报
刷新页面
返回顶部
公告