Java JDBC with MySQL in VSCode

preview_player
Показать описание
JAVA Source (db: mktest, table: stud)

public class App {
static final String DB_URL = "jdbc:mysql://localhost:3306/mktest";
static final String USER = "root";
static final String PASS = "password";
static final String QUERY = "SELECT * FROM stud";

public static void main(String[] args) {
// Open a connection
// Extract data from result set
// Retrieve by column name
}
} catch (SQLException e) {
}
}
}
Рекомендации по теме
Комментарии
Автор

Thank U Brother, you help Me to solve 1 month bug, thank you again

AbdulJabbar-edvs
Автор

Success! Finally my attempt to make exercises to teach my students has succeeded. I can connect to my database. Thank you very much.

papermanmedia
Автор

Congratulations, it was exactly that i was searching for.

Linkk
Автор

your video was so helpful i wish you will upload some video's dependent to servlet executing error.

anupamsingh