Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/336.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
Java TEXT列:参数数据类型TEXT对于lower函数的参数1无效_Java_Sql_Jpql - Fatal编程技术网

Java TEXT列:参数数据类型TEXT对于lower函数的参数1无效

Java TEXT列:参数数据类型TEXT对于lower函数的参数1无效,java,sql,jpql,Java,Sql,Jpql,我目前有一个repo方法,它充当分页的过滤器: 回购: 如图所示,当您输入一个值时,它会改变它,确保同时显示大写值和小写值。但是,在“theProblem”列中添加LOWER时,会在标题中产生错误: Argument data type text is invalid for argument 1 of lower function 我对该特定列的数据类型是文本,因此,我认为这是问题的罪魁祸首。然而,由于数据库布局,我需要它是一个文本。因此,在调用它时,我是否可以在repo方法中转换/转换它

我目前有一个repo方法,它充当分页的过滤器:

回购:

如图所示,当您输入一个值时,它会改变它,确保同时显示大写值和小写值。但是,在“theProblem”列中添加LOWER时,会在标题中产生错误:

Argument data type text is invalid for argument 1 of lower function
我对该特定列的数据类型是文本,因此,我认为这是问题的罪魁祸首。然而,由于数据库布局,我需要它是一个文本。因此,在调用它时,我是否可以在repo方法中转换/转换它

专栏:

@Column(name = "the_problem", columnDefinition = "TEXT") // text rather than varchar
private String theProblem;

谢谢。

您使用的是哪种DBMS产品?“SQL”只是一种查询语言,而不是特定数据库产品的名称。请为您正在使用的数据库产品添加。您使用的是哪种DBMS产品?“SQL”只是一种查询语言,而不是特定数据库产品的名称。请为您正在使用的数据库产品添加。
@Column(name = "the_problem", columnDefinition = "TEXT") // text rather than varchar
private String theProblem;