vf中,where & cn 程序如下:select student inner join score;on student.ke=score.ke;where & cn;into table abc其中where &

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 05:40:46
vf中,where & cn 程序如下:select student inner join score;on student.ke=score.ke;where & cn;into table abc其中where &

vf中,where & cn 程序如下:select student inner join score;on student.ke=score.ke;where & cn;into table abc其中where &
vf中,where & cn
程序如下:
select student inner join score;
on student.ke=score.ke;
where & cn;
into table abc
其中where &

vf中,where & cn 程序如下:select student inner join score;on student.ke=score.ke;where & cn;into table abc其中where &
cn是一个变量,
& 是宏替换.
where & cn 是把cn这个变量的内容放在where 后面.
例如:cn="性别=女",就是说选择性别是女的学生.
为什么不把【性别=女】直接放在where后面哪?
因为,有的时候,程序需要对cn这个变量,随时取值,而取值,又是根据用户输入的信息来定.
比如,用户输入:姓名=ABC.那么,cn就是"姓名=ABC".这时,where后面就是 姓名=ABC 了.
比如,用户输入:班级=3 .那么,cn就是"班级=3".这时,where后面就是 班级=3 了.