Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: Check if a Database supports the batching

Java: Check if a Database supports the batching
{filelink=7031}

import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
public class Batch_Support
 {
  public static void main(String[] argv) throws Exception
  	{
    Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/cours",
        "root", "");
    DatabaseMetaData bd_meta = conn.getMetaData();
    if (bd_meta.supportsBatchUpdates())
   {
      System.out.println ("Batching is supported");
    } else {
      System.out.println ("Batching is not supported");
    }
  }
}

Users who found this page were searching for:

  • read character in python
  • python current working directory
  • icon tray program java
  • java how to save a text string to database

No comments yet.

Leave a Comment