Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/10.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中检查表中是否存在值?_Java_Oracle - Fatal编程技术网

如何在Java中检查表中是否存在值?

如何在Java中检查表中是否存在值?,java,oracle,Java,Oracle,有谁能告诉我,如何检查用户输入的值是否存在于某个特定的表中,或者不是通过Java代码输入的?我猜您需要首先检查。这将使您能够从Java对数据库运行SQL,例如: if EXISTS (select * from authors where name = 'Dan Brown') 我猜你首先需要。这将使您能够从Java对数据库运行SQL,例如: if EXISTS (select * from authors where name = 'Dan Brown')

有谁能告诉我,如何检查用户输入的值是否存在于某个特定的表中,或者不是通过Java代码输入的?

我猜您需要首先检查。这将使您能够从Java对数据库运行SQL,例如:

if EXISTS (select *
    from authors
    where name = 'Dan Brown')
我猜你首先需要。这将使您能够从Java对数据库运行SQL,例如:

if EXISTS (select *
    from authors
    where name = 'Dan Brown')