Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MySql和/或yaml文件中的混淆_Mysql_Sql_Yaml - Fatal编程技术网

MySql和/或yaml文件中的混淆

MySql和/或yaml文件中的混淆,mysql,sql,yaml,Mysql,Sql,Yaml,表名为“Student s” 其中列为s_id、测试日期、形式和其他形式A至I。 yaml文件具有以下条件: /*OPT and s.tested_date <= :Date */ /*OPT and s.form in ( :formFilter ) */ /*OPT and s.OtherInformationA in (:otherInformationA) */ /*OPT OR s.OtherInformationB in (:otherInformationB) */ /*OP

表名为“Student s” 其中列为s_id、测试日期、形式和其他形式A至I。 yaml文件具有以下条件:

/*OPT and s.tested_date <= :Date */
/*OPT and s.form in ( :formFilter ) */
/*OPT and s.OtherInformationA in (:otherInformationA) */
/*OPT OR s.OtherInformationB in (:otherInformationB) */
/*OPT OR s.OtherInformationC in (:otherInformationC) */
/*OPT OR s.OtherInformationD in (:otherInformationD) */
/*OPT OR s.OtherInformationE in (:otherInformationE) */
/*OPT OR s.OtherInformationF in (:otherInformationF) */
/*OPT OR s.OtherInformationH in (:otherInformationH) */
/*OPT OR s.OtherInformationG in (:otherInformationG) */
/*OPT OR s.OtherInformationI in (:otherInformationI) */

/*OPT and s.tested_date YAML是一种标记语言,如何使用它取决于您自己。我建议您提供来自任何解释标记的系统的相关代码。@miken32 YAML代表“YAML不是标记语言”。YAML是数据序列化语言,而不是标记语言。不过,你其余的评论是正确的。@Jordan Haha我以前从未用过它;我原以为它是“另一种标记语言!”我原以为是这样,但在某个时候,有人向作者指出它根本不是标记语言,所以他改变了它
SELECT * FROM Student
WHERE s.tested_date <= :Date
AND s.form in ( :formFilter )
AND s.OtherInformationA in (:otherInformationA);
SELECT * FROM Student
WHERE s.tested_date <= :Date
AND s.form in ( :formFilter )
OR s.OtherInformationB in (:otherInformationB)
SELECT * FROM Student
WHERE s.tested_date <= :Date
AND s.form in ( :formFilter )
AND (s.OtherInformationB in (:otherInformationB) Or s.OtherInformationC in (:otherInformationC) or s.OtherInformationD in (:otherInformationD));