Here you can find the source of executeSqlStatements(SQLiteDatabase db, String[] statements)
public static int executeSqlStatements(SQLiteDatabase db, String[] statements)
//package com.java2s; //License from project: Open Source License import android.database.sqlite.*; public class Main { public static int executeSqlStatements(SQLiteDatabase db, String[] statements) { int count = 0; for (String line : statements) { line = line.trim();// w w w . j av a 2 s . c o m if (line.length() > 0) { db.execSQL(line); count++; } } return count; } }