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

ÓйØSQliteµÄÒ»¸öÎÊÌâ

³ÌÐò´úÂëÈçÏ£º
sqlTime = "select SUM(onlineTimeSpan) from T_OnlineTimeSum where ipAddress = :a AND onlineDate BETWEEN :b AND :c";
                daSpan = new SQLiteDataAdapter(sqlTime, conn);
                daSpan.SelectCommand.Parameters.Add(new SQLiteParameter("a", DbType.String));
                daSpan.SelectCommand.Parameters.Add(new SQLiteParameter("b", DbType.String));
                daSpan.SelectCommand.Parameters.Add(new SQLiteParameter("c", DbType.String));

                daSpan.SelectCommand.Parameters[0].Value = Address;
                daSpan.SelectCommand.Parameters[1].Value = startDate.Date.ToString("yyyy-MM-dd");
                daSpan.SelectCommand.Parameters[2].Value = endDate.Date.ToString("yyyy-MM-dd");
ÕâÑùд²éѯʱ¼äÌìÊýÊÇһλµÄ׼ȷµÄ±ÈÈç 2009Äê12ÔÂ4ºÅ µ½ 2009Äê12ÔÂ6ºÅ ÈçÏ£º
select SUM(TimeSpan) from TimeSum where Address = 'xxxx' AND lineDate BETWEEN '2009-12-4' AND '2009-12-6'
µ«ÊÇÈç¹ûʱ¼ä¿ç¶ÈΪ 2009Äê12ÔÂ14ºÅ µ½ 2009Äê12ÔÂ16ºÅʱºòÕâÑùд¾Í»á²úÉúÎÊÌâÖ»ÄܺϼƵ½ 14£¬15ºÅ2ÌìµÄÖµ£¬
µ«ÊÇÈç¹û¸ÄΪÈçÏ´úÂ룺 <


Ïà¹ØÎÊ´ð£º

SqliteÎÞ·¨¸üÐÂ

C# code:
public static bool UpdateFriendUrl(int id, string cnName, string jpName, string logoUrl, string site, int order)
{
string sql = "update FriendUrl set SiteNameCN=@SiteNameC ......

help£¡SQLiteÖвÙ×÷blobÀàÐ͵Ä×ֶεÄÎÊÌâ

ÕâÊÇÎҲ鵽µÄ×ÊÁÏ
http://www.cppprog.com/2009/0108/43.html ÒѾ­´æ½øͼƬÁË£¬ÏÖÔÚ×öµ½ÕâÒ»²½ÁË£¬
¡°ÕâʱÊý¾Ý¿âµ±ÖÐÒѾ­ÓÐÁËÒ»Ìõ°üº¬BLOB×ֶεÄÊý¾Ý¡£½ÓÏÂÀ´ÎÒÃÇÒª¶ÁÈ¡ÕâÌõÊý¾Ý£º  1.  //Ñ¡È¡¸ÃÌõ ......

SQLite·µ»ØµÄÖÐÎļǼÊÇÂÒÂë

WTL¿ò¼ÜʹÓÃUnicode×Ö·û¼¯
ÓÃÏÂÃ溯Êý²åÈë¼Ç¼
void CMainFrame::Insert()
{
TCHAR query[MAX_PATH] = {0};
_stprintf(query, _T("insert into correct_word values (\'發\',\& ......

sqlite£¬updateµÄÎÊÌâ

ÎÒÏë×öÒ»¸ösqliteµÄ¼à¿ØÈí¼þ£¬ÊµÊ±ÖªµÀÓû§¶ÔÊý¾Ý±í¶¼×öÁËÄÄЩ²Ù×÷¡£

ÔÚÓû§update Ò»¸öÓû§Êý¾Ý±íֵʱ£¬ÎÒÈçºÎ¿ÉÒÔµÃÖªÓû§updateµÄÄĸö×ֶεÄÖµ£¿ÎÒ±¾À´¸øÓû§±íÌí¼Ó´¥·¢Æ÷À´ÊµÏֵģ¬µ«´¥·¢Æ÷ºÃÏñÖ»Äܵõ½Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ