Now, data is inserted into the table. INSERTINTOtbl_EmployeeVALUES('Jitu','Male','India',4000,1);INSERTINTOtbl_EmployeeVALUES('Rani','Female','India',5000,3);INSERTINTOtbl_EmployeeVALUES('Rohit','Male','India',5500,1);INSERTINTOtbl_EmployeeVALUES('Dibas','Male','India',6500,2);INS...
Connection con = DriverManager.getConnection("jdbc:odbc:dsn1", "system", "pintu"); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("select * from account where accno=" + ano + " and pno=" + pno); if (rs.next()) { bal = rs.getInt("balance"); ...
Insert into tbl_Employee values ( 'Chandin', 'Female','India', 8500, 1) Insert into tbl_Employee values ( 'pintu', 'Male','India', 9500, NULL) Insert into tbl_Employee values ( 'Subrat', 'Male','India', 9800, NULL) Execute the above query, you should see a message, “Com...
public partial class Form1 : Form { public OleDbConnection con; public void pintu(string s) { con = new OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; " + "data source='" + s + " '; " + "Extended Properties=Excel 8.0;"); } public OleDbCommand com; public DataSet ds; public OleD...
pintu patil 12y 2k 1 Reply namespace WindowsFormsApplication3 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public int q; SoundPlayer player = new SoundPlayer(); public void Test(int flag) { CancellationTokenSource tokenSource = new CancellationTokenSource();...