即使是做網路應用,在斷線情況下,也需要考慮資料的本機存放區。在SQLite出現之前,資料量大的情況下,我們一直使用ACCESS,資料量小,則檔案儲存體。ACCESS不支援事務原子性,在斷電情況下(這種情況總是會發生)會導致資料很難恢複。 一:安裝 SQLITE,是一款輕型的資料庫,是遵守ACID的關聯式資料庫管理系統。我直接使用的是http://sqlite.phxsoftware.com/(An open source ADO.NET provider for the SQLite
今天經理給了我一個三十多M的sql檔案,讓我測試資料定位的問題。按照慣例,我使用navicat for sqlite建立一個表,然後將sql檔案匯入。我然後去幹其他事兒了,大約過了一個多小時,我想資料應該匯入的差不多了吧。我開啟一看,汗,死在那兒了。我關掉軟體又重新匯入一遍,還是那個德行。又得知經理曾經自己也導過,沒有成功。看來,用工具匯入的方法行不通了。 但是,想想就十多萬條資料,就是十多萬條insert
來自:http://www.mikeduncan.com/sqlite-on-dotnet-in-3-mins/ SQLite on .NET - Get up and running in 3 minutes.January 15th, 2008 | grokableYou found it! The quick and dirty guide to setting up SQLite with .Net in 3 minutes. Small, fast, and ass-kicking
Android中一共提供了四種資料存放區方式:Shared Preferences: 用來儲存"Key"-"Value"格式的資料,是一個輕量級的KVStore for Redis機制,只可以儲存基礎資料型別 (Elementary Data Type)。Filws: 檔案儲存體SQLite:Android提供的標準資料庫,支援SQL語句Network:通過網路來儲存和擷取資料Shared
View Code 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 wince資料庫{ public partial class Form1 : Form