

























using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SQLite;
namespace sqllit
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
SQLiteConnection conn=new SQLiteConnection();
SQLiteCommand cmd;
SQLiteDataReader dr;
conn.ConnectionString = "Data Source=c:\\temp\\mdb2sql_all.db3";
conn.Open();
string _sql = "select djh from zd_zjb where lzzjrxm is null group by djh intersect select djh from zd_zjb where lzzjrxm is not null group by djh";
cmd=new SQLiteCommand(_sql,conn);
dr=cmd.ExecuteReader();
while (dr.Read())
{
listBox1.Items.Insert(0,dr.GetString(0));
//Application.DoEvents();
}
}
}
}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。