惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
I
InfoQ
F
Full Disclosure
美团技术团队
Martin Fowler
Martin Fowler
量子位
V
V2EX
小众软件
小众软件
爱范儿
爱范儿
宝玉的分享
宝玉的分享
aimingoo的专栏
aimingoo的专栏
有赞技术团队
有赞技术团队
F
Fortinet All Blogs
M
MIT News - Artificial intelligence
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
IT之家
IT之家
云风的 BLOG
云风的 BLOG
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
Microsoft Azure Blog
Microsoft Azure Blog
T
Threat Research - Cisco Blogs
T
Threatpost
P
Proofpoint News Feed
腾讯CDC
博客园 - 司徒正美
Jina AI
Jina AI
The Hacker News
The Hacker News
P
Privacy & Cybersecurity Law Blog
L
LINUX DO - 热门话题
S
Securelist
U
Unit 42
T
The Exploit Database - CXSecurity.com
博客园 - Franky
NISL@THU
NISL@THU
D
Docker
The GitHub Blog
The GitHub Blog
Latest news
Latest news
S
Schneier on Security
J
Java Code Geeks
Blog — PlanetScale
Blog — PlanetScale
P
Palo Alto Networks Blog

博客园 - nuxgod

摘:淘宝开店月入上万 不赚钱的技术不是真正的技术 电影金蝉脱壳又一版的越狱哦 昨天今天接到的骚扰电话 微软有“病”,推出bing,看上去算象个站内搜索,心寒! 好久没更新了,太忙了,软件包 javax.servlet 不存在 昨天,自己迷糊得买了个虚拟空间,可现在不知道用它干些什么好啊? 【推荐】不是打广告,个人觉的不错哦 感觉G盘越来越不好了 看了一天的sql配置,头都大了 明后两天的工作计划 使用EditPlus自制的函数查询功能 设计者应该去去的一些网站 我的下载站,新增 第一个问题有待考虑? 今天考虑了很久总算把昨天遗留下来的第二个问题解决了Y - nuxgod - 博客园 做了一天的程序,很困啊,明天还要赶着去上课 有点困了 这是为什么呢? - nuxgod - 博客园
怎样对Access里进行两个表的联合查询? - nuxgod - 博客园
nuxgod · 2007-03-22 · via 博客园 - nuxgod

Select Case TmaterialCatalog
    
Case "Sub"
        Field
="countryID"
        sql
="Select Name From TCountry Where ID=" &SubID& ""
    
Case "Sub0"
        Field
="schoolID"
        sql
="(Select Name From TCountry Where ID=(Select countryID From TSchool Where ID=" &SubID& "))+'-'+(Select Name From TSchool Where ID=" &SubID& ")"
'        Response.Write sql
'
        Response.End 
    Case Else
        Response.Write 
"<body bgColor='#D4D0C8'></body>"
        Response.End 
End Select

有错,这是为什么呢?
为了使开发进度加快,我只好用下面的代码:

Dim Field,sql,strsql
Select Case TmaterialCatalog
    
Case "Sub"
        Field
="countryID"
        sql
="Select Name From TCountry Where ID=" &SubID& ""
    
Case "Sub0"
        Field
="schoolID"
        strsql
="Select Name From TCountry Where ID in (Select countryID From TSchool Where ID=" &SubID& ")"
        sql
="Select Name From TSchool Where ID=" &SubID& ""
        
'sql="Select (Select Name From TCountry Where ID=(Select countryID From TSchool Where ID=" &SubID& "))+'-'+(Select Name From TSchool Where ID=" &SubID& ")"
'
        Response.Write sql
'
        Response.End 
    Case Else
        Response.Write 
"<body bgColor='#D4D0C8'></body>"
        Response.End 
End Select

不知道,谁能帮助我一下,把Case "Sub0" 下面代码改下?