1. sql语句:在student数据表中运用select语句查询性别为女并且数学成绩大于75的学生的所有信息

来源:百度知道 编辑:UC知道 时间:2024/05/30 04:15:33
1. sql语句:在student数据表中运用select语句查询性别为女并且数学成绩大于75的学生的所有信息

select * from student where sex='女' and mathGreade>75;

<%
set rs=server.createobject("ADODB.Recordset")
sql="select * from student where 1=1"
if 性别='女' and 成绩>75 then sql=sql&" and 查询字段名 like'%"&输入框文本名&"%'"
sql=sql&" order by id desc"
rs.open sql,conn,3,3
%>