private void button4_Click(object sender, EventArgs e) { if (SqliHelper.DeleteData("表2", "用户名 Like '阿男达'", "密码 like '8888'") == true) { SqliHelper.CheckImporlistview(this.listView1, "表2", ""); } }
private void button2_Click(object sender, EventArgs e) { try { List <List <string> > List = SqliHelper.ReadData("table1", new string[] { "Name", "EMAIL", "CODE" }, " ORDER BY RANDOM() LIMIT 1 OFFSET 0", "Name like 'aaa'", "CODE like '1234'"); if (List.Count > 0) { textBox1.Text = List[0][0]; textBox2.Text = List[0][1]; textBox3.Text = List[0][2]; } SqliHelper.CheckImporlistview(this.listView1, "表2", ""); } catch { } }