private void button2_Click(object sender, EventArgs e)
{
string kmbm = "1";
string fzhsmc = "1";
string je = "1";
string sql1 = "SELECT count(xsz.xz_bqdfje) FROM xsz WHERE instr(xsz.xz_kmbm, '" + kmbm + "')= 1 and xsz.xz_bqdfje != '' and xsz.xz_bqdfje > " + je + " AND xsz.xz_bqdfje != '' AND instr(xsz.xz_fzhsmc,'" + fzhsmc + "')> 0";
using (SQLiteConnection conntion1 = new SQLiteConnection(ConnString))
{
conntion1.Open();
SQLiteCommand cmd = new SQLiteCommand();
cmd.Connection = conntion1;
cmd.CommandText = sql1;
SQLiteDataReader sre = cmd.ExecuteReader();
sre.Read();
textBox1.Text = sre[0].ToString();
}
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}