Java tutorial
//package com.java2s; import android.database.sqlite.SQLiteDatabase; public class Main { private static final String COMMENT_TABLE_NAME = "Comment"; private static final String COMMENT_COMPANY_ID = "companyId"; public static void deleteComment(long companyId, SQLiteDatabase db) { db.delete(COMMENT_TABLE_NAME, COMMENT_COMPANY_ID + "=" + Long.toString(companyId), null); } }