Tnx.Maybe something like this?
static void connect() {
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn = DriverManager.getConnection("jdbc:mysql://localhost/prodaja",...
Type: Posts; User: Hurricane
Tnx.Maybe something like this?
static void connect() {
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn = DriverManager.getConnection("jdbc:mysql://localhost/prodaja",...
Example:i have a database name base1,with one table(product) and data inside her:productid,name,price. How to create a class for that table product? Tnx in advance.
Maybe something like this?
...
Yes.Does it work?Can i use methods like is shown in code?
Hello.I'm new to Java,and i have one question:is this code good?
import java.sql.*;
public class Proizvod {
public static void main(String[] args) {
Hello from rookie to all good people's!