zoukankan      html  css  js  c++  java
  • System.Data.SQLite测试

    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();
                }
            }
        }
    }

  • 相关阅读:
    undo表空间
    SQL*Plus快速入门
    win10用命令net启动服务没权限解决办法
    Oracle表空间管理
    Oracle数据泵(上)
    windows的bat脚本
    Servlet映射细节
    JSP技术(一)
    690. Employee Importance
    BFS和DFS详解以及java实现(转载)
  • 原文地址:https://www.cnblogs.com/booolee/p/1566263.html
Copyright © 2011-2022 走看看