赞
踩
- using System;
- using System.Data.SQLite;
-
- class Program
- {
- static void Main()
- {
- string connectionString = "Data Source=mydatabase.db;Version=3;";
-
- using (SQLiteConnection connection = new SQLiteConnection(connectionString))
- {
- connection.Open();
-
- string createTableQuery = "CREATE TABLE IF NOT EXISTS Customers (Id INT, Name TEXT)";
- using (SQLiteCommand command = new SQLiteCommand(createTableQuery, connection))
- {
- command.ExecuteNonQuery();
- }
-
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。