Create Table Student :
name char
id number
addr char
import java.sql.*;
class TableCreate
{
public static void main(String[] args)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c = DriverManager.getConnection("Jdbc:Odbc:Maya");
Statement s = c.createStatement();
s.execute("create Table Student(name char, id number, addr char)");
System.out.println("Table Created");
}
catch(Exception e)
{
e.printStackTrace();
}
}
}