hello i hope someone can help me i have this code (which is below) every time i try to compile it it brings up a exception which is (could noty find output table Cust) why is this? if someonecould help with it please i would be gratefull also how do i know if i have selected the right database to insert into? thanks ben
import java.sql.*;
class JD {
public static void main (String[] args) { String data = "jdbc:odbc:World Energy"; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection conn = DriverManager.getConnection(data,"",""); Statement st = conn.createStatement(); st.executeUpdate("INSERT INTO Cust ([first name], [last name])" + "VALUES ('dave', 'peters')");