Questions tagged as 'jdbc'

2
answers

The result set has no current row

I'm doing a program of Libros and Autores where a autor has many libros . When inserting a new Libro I need to get id of autor to save it as fk_dni in table Libros , so I have...
asked by 30.08.2017 / 20:12
2
answers

Connect Java with SQL Server 2017 in Eclipse Oxygen

I am using Eclipse Oxygen to develop a Java program and I want to use SQL Server 2017 to save the information. I read in other places how to do it, but, it does not work for me. Steps I've done so far: I downloaded the Microsoft JDBC Dri...
asked by 05.11.2017 / 03:31
1
answer

Syntax error Mysql in J2EE Web application Servlets and JSP's

I am building a small web app using NetBeans 8.2 with J2EE. At the moment of executing the following query in the DAO, it shows me a MySQL syntax error that does not exist since if I execute the query in the BD manager there is no syntax prob...
asked by 23.10.2017 / 13:40
1
answer

What is a mysql driver in java?

Could someone explain to me what exactly is a driver and what would be using it with mysql? It's been a while since I started watching JBDC videos and the word "Drivers" is constantly being used, and with Google's response, it's not enough fo...
asked by 01.04.2016 / 18:22
1
answer

Error connecting Java to SQL Server with JDBC

Good morning, I have the following code public class main { private static Connection cn; public static Connection getConexion() { try { Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");...
asked by 11.08.2017 / 22:29
1
answer

create table from java that has a database in access

I would like a table, when I want it to increase again from 1, but I searched in many places and this can not be done from java ... although if someone knows it would be great, if they could help me. Then going back to the topic, as an alternati...
asked by 11.03.2017 / 05:04
2
answers

snackbar with database,

I want to show a snackbar with data obtained through a database, the problem is that the snackbar is not shown, I will leave the code that I am using: edit: delete the code and this is the current one map.setOnMarkerClickListener(new Google...
asked by 13.12.2016 / 04:08
2
answers

connection to java with mysql

Actually not so good JAJA, I have a problem with the connection from java to mysql and import the library the jar even though I made the connection and it tells me that the connection is not established. I show you the connection code packa...
asked by 19.04.2018 / 17:38
2
answers

NullPointer when executing a PreparedStatement

I am trying to generate a ArrayList of users from a DB , the case is that when executing the PreparedStatement it returns a NullPointer and it tells me that the connection object is null, it is something that does not...
asked by 16.04.2018 / 09:13
1
answer

Problem with access to MySql database

I am learning programming and I am struggling with a problem in my web application. I have made the same application using SQLServer and I have not had problems but changing the connection string to make it work with MySql stops working. I am...
asked by 20.10.2018 / 08:27