查询语句出错了,想从数据库中拿数据出来用

问题遇到的现象和发生背景

条件查询,语句只有一个是需要查询的字段,剩下的全部从数据库中取

问题相关代码,请勿粘贴截图
                                              if(name.equals("")) {name=".*?";}
                              if(sex.equals("")) {sex=".*?"}
                    if(age.equals("")) {age=".*?";}
                    if(grade.equals("")) {grade=".*?";}
                    if(number.equals("")) {
                        number=".*?";
                    } 

String url="select * from stu where name REGEXP? and sex REGEXP? and age REGEXP? and grade RE GEXP? and number REGEXP? ";

运行结果及报错内容

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'REGTEXP'.?' and sex REGTEXP'女' and age REGTEXP'.?' and grade REGTEXP'.*?' an' at line

我的解答思路和尝试过的方法

暂时没有

我想要达到的结果

能够查询出来

为什么你上面是REGEXP,下面是REGTEXP