• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

access information in a mysql database

Hi, how can I perform the following query without an error being thrown?

ResultSet rs112 = stmt1.executeQuery("select names  from details d where completed like d.'no' and time like d.\""+time+"\" ");
0
VolSpeak
Asked:
VolSpeak
1 Solution
 
TimYatesCommented:
ResultSet rs112 = stmt1.executeQuery("select names  from details d where d.completed = 'no' and d.time = \""+time+"\"" );
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now