📄 13021.html
字号:
<html>
<head>
<title>应该这样</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>应该这样</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:jwh@ms1.hinet.net">纪文和</a> on May 17, 1999 at 02:49:47:<p>
In Reply to: <a href="12977.html">这样的SQL可以这样写吗?</a> posted by jeff on May 15, 1999 at 09:46:32:<p>
: Set trade = dbs.OpenRecordset("select * from 班级资料 where '" & Text2.Text & "' <> '0' ")<p><br>SELECT 的语法是<br>select fieldname1,fieldname2,... from table1 where fieldname = fieldvalue<p>在您的 SQL 字串中<br>Set trade = dbs.OpenRecordset("select * from 班级资料 where '" & Text2.Text & "' <> '0' ")<p>您搞错了一个地方, where 之后接的应该是 fieldname = fieldvalue, <br>fieldname 就是--班级名称, fieldvalue 就是 Text2.Text,<br>所以正确的 SQL 字串应该是<p>"select 班级名称 from 班级资料 where 班级名称 = '" & Text2.Text & "'"<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 13021-->
</ul><!--end: 13021-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -