Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔÚ.NET C#ÖÐʹÓÃsqlite

 1¡£´Ówww.sqlite.orgÏÂÔØSQLite 3.3.4µÄ°æ±¾
ΪÁË·½±ã£¬ÎÒ°ÑËü½âѹÁË£¬¾ÍÒ»¸öSQLite3.exe£¬·ÅÈëWindowsĿ¼Ï¡£
Cmd ½øÈëÃüÁîÐÐ
1)
´´½¨Êý¾Ý¿âÎļþ:
>SQLite3 d:\test.db »Ø³µ
¾ÍÉú³ÉÁËÒ»¸ötest.dbÔÚdÅÌ¡£
ÕâÑùͬʱҲSQLite3¹ÒÉÏÁËÕâ¸ötest.db
2)
ÓÃ.help¿ÉÒÔ¿´¿´ÓÐʲôÃüÁî
>.help »Ø³µ¼´¿É
3)¿ÉÒÔÔÚÕâÀïÖ±½ÓÊäÈëSQLÓï¾ä´´½¨±í¸ñ ÓÃ;½áÊø£¬È»ºó»Ø³µ¾Í¿ÉÒÔ¿´µ½ÁË
4)¿´¿´Óд´½¨Á˶àÉÙ±í
>.tables
5)¿´±í½á¹¹
>.schema ±íÃû
6)¿´¿´Ä¿Ç°¹ÒµÄÊý¾Ý¿â
>.database
7)Èç¹ûÒª°Ñ²éѯÊä³öµ½Îļþ
>.output ÎļþÃû
> ²éѯÓï¾ä£»
²éѯ½á¹û¾ÍÊä³öµ½ÁËÎļþc:\query.txt
°Ñ²éѯ½á¹ûÓÃÆÁÄ»Êä³ö
>.output stdout
8)°Ñ±í½á¹¹Êä³ö£¬Í¬Ê±Ë÷ÒýÒ²»áÊä³ö
.dump ±íÃû
9)Í˳ö
>.exit »òÕß.quit
2¡£´Óhttp://sqlite.phxsoftware.com/ÏÂÔØAdo.netÇý¶¯¡£
ÏÂÔØÁË°²×°£¬ÔÚ°²×°Ä¿Â¼ÖдæÔÚSystem.Data.SQLite.dll
ÎÒÃÇÖ»ÐèÒª¿½±´Õâ¸öÎļþµ½ÒýÓÃĿ¼£¬²¢Ìí¼ÓÒýÓü´¿É¶ÔSQLiteÊý¾Ý¿â²Ù×÷ÁË
ËùÓеÄAdo.net¶ÔÏó¶¼ÊÇÒÔSQLite¿ªÍ·µÄ£¬±ÈÈçSQLiteConnection
Á¬½Ó´®Ö»ÐèÒªÈçÏ·½Ê½
Data Source=d:\test.db »òÕßDataSource=test.db--Ó¦ÓÃÔÚºÍÓ¦ÓóÌÐò»òÕß.netÄܹ»×Ô¶¯ÕÒµ½µÄĿ¼
ʣϵľͺܼòµ¥ÁË~~
3¡£SQLÓï·¨
ÓÉÓÚÒÔÇ°ÓÃSQLServer»òÕßISeries£¬ËùÒÔDDLµÄÓï·¨ºÜº¹ÑÕ
1)´´½¨Ò»¸öµ¥¸öPrimary KeyµÄtable
CREATE TABLE [Admin] (
[UserName] [nvarchar] (20) PRIMARY KEY NOT NULL ,
[Password] [nvarchar] (50) NOT NULL ,
[Rank] [smallint] NOT NULL ,
[MailServer] [nvarchar] (50) NOT NULL ,
[MailUser] [nvarchar] (50) NOT NULL ,
[MailPassword] [nvarchar] (50) NOT NULL ,
[Mail] [nvarchar] (50) NOT NULL
) ;
2)´´½¨Ò»¸ö¶à¸öPrimary KeyµÄtable
CREATE TABLE [CodeDetail] (
[CdType] [nvarchar] (10) NOT NULL ,
[CdCode] [nvarchar] (20) NOT NULL ,
[CdString1] [ntext] NOT NULL ,
[CdString2] [ntext] NOT NULL ,
[CdString3] [ntext] NOT NULL,
PRIMARY KEY (CdType,CdCode)
) ;
3)´´½¨Ë÷Òý
CREATE INDEX [IX_Account] ON [Account]([IsCheck], [UserName]);
»¹¿ÉÒÔÊÓͼµÈµÈ¡£
4.»¹ÓкÜÓÐÓõÄSQL
Select * from Sqlite_master
Select datetime('now')
Select date('now')
Select time('now')
ÒÔ¼°ºÜ¶àº¯Êý£¬¾ßÌå¿ÉÒԲο¼SQLiteµÄwiki.
oh,»¹ÓоÍÊÇ¿´µ½ÓÐÈË˵£¬ºÃÏñ³ÉÅú²


Ïà¹ØÎĵµ£º

C#¶ÁÈ¡access±í£¬²¢°ÑÊý¾ÝÏÔʾÔÚgridcontrolÖÐ

 //¶ÁÈ¡±ê×¼Áбí
        private void setModelList()
        {
            OleDbConnection Connection = null;
         &n ......

²»ÓÃAJAXʵÏÖǰ̨JSµ÷Óúǫ́C#·½·¨(С¼¼ÇÉ)

      £¨×ªÌû£©
¡¡¡¡Ò»Ìáµ½ÈçºÎÔÚǰ̨JSµ÷Óúǫ́C#·½·¨£¬AJAX³ÉΪÁ˱ØÈ»µÄÏë·¨¡£
¡¡¡¡Ö»ÊÇʵÏÖµÄϸ½Ú²ÉÓÃAJAX 1.0»òÕßAjaxProµÄÇø±ð¡£
¡¡¡¡ÆäʵÈç¹û²»ÓÃAJAX£¬ÎÒÃÇÒ²Äܹ»ºÜ·½±ãµØÀûÓÃJSµ÷Óúǫ́·½·¨¡£
¡¡¡¡²½ÖèÈçÏ£º
¡¡¡¡1 ǰ̨·ÅÒ»¸ö°´Å¥¡£ÉèÖÃΪÒþ²Ø¡£×¢Ò⣺²»ÄÜÖ±½ÓÉèÖÃVisible=falseµÄ· ......

ĬÈÏÖ»ÄÜÉÏ´«2M¸½¼þ, ÈçºÎ·Å¿ªÏÞÖÆ? (asp.net C#)

 
¶ÔÓÚasp.net,ĬÈÏÖ»ÔÊÐíÉÏ´«2MÎļþ,Ôö¼ÓÈçÏÂÅäÖÃ,Ò»°ã¿ÉÒÔ×Ô¶¨Òå×î´óÎļþ´óС.
<httpRuntime executionTimeout="300" maxRequestLength="40960" useFullyQualifiedRedirectUrl="false"/>
ÎÒÃÇÔÚÉÏ´«´óÎļþʱ¶¼Óöµ½¹ýÕâÑù»òÄÇÑùµÄÎÊÌâ¡£ÉèÖúܴóµÄmaxRequestLengthÖµ²¢²»ÄÜÍê ......

³¤ÄÚÈÝ×Ô¶¯·ÖÒ³µÄʵÏÖ (asp.net C#)

 
public class t3 : System.Web.UI.Page
        {  
                private string str;//×Ö·û
            &n ......

c#²Ù×÷accessÊý¾Ý¿â

 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.OleDb;
namespace AddressList
{
public partial class FrmAccessUse : Form
{
public Fr ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ