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

推荐订阅源

AI
AI
S
Schneier on Security
T
Tenable Blog
A
Arctic Wolf
I
Intezer
博客园 - 司徒正美
A
About on SuperTechFans
The Hacker News
The Hacker News
H
Hacker News: Front Page
Security Archives - TechRepublic
Security Archives - TechRepublic
Attack and Defense Labs
Attack and Defense Labs
Webroot Blog
Webroot Blog
T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
L
Lohrmann on Cybersecurity
D
Docker
T
The Exploit Database - CXSecurity.com
博客园_首页
Microsoft Azure Blog
Microsoft Azure Blog
N
Netflix TechBlog - Medium
H
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Recorded Future
Recorded Future
P
Proofpoint News Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Help Net Security
Help Net Security
L
LINUX DO - 最新话题
AWS News Blog
AWS News Blog
量子位
MyScale Blog
MyScale Blog
博客园 - 聂微东
S
Security @ Cisco Blogs
The Register - Security
The Register - Security
www.infosecurity-magazine.com
www.infosecurity-magazine.com
月光博客
月光博客
V2EX - 技术
V2EX - 技术
T
Troy Hunt's Blog
SecWiki News
SecWiki News
L
LangChain Blog
B
Blog
博客园 - 三生石上(FineUI控件)
Cyberwarzone
Cyberwarzone
H
Heimdal Security Blog
Scott Helme
Scott Helme
O
OpenAI News
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
M
MIT News - Artificial intelligence
Google DeepMind News
Google DeepMind News
雷峰网
雷峰网

博客园 - 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" 下面代码改下?