ÎÒÏÖÔÚÓÐÁ½¸ö±í
µÚÒ»¸ö±íΪ
id title content
1 34234 234234
µÚ¶þ¸ö±íΪ
id Tcontent time tab1ID
1 ¼ÎÁê½ 2009-1-1 1
ÔõÑù°Ñ±í¶þµÄtime¼ÓÈë±íÒ» È»ºóselectÅųötimeµÄÉýÐò
ÎÒÁ¬½ÓÁ½±í¶¼¸ãÔÎÁË Çë´ó´óÃÇ°ï°ïæ
SQL code:
select *
from µÚÒ»¸ö±í a ,µÚ¶þ¸ö±í b
where a.id=b.tab1ID
order by b.time
SQL code:
select *
from µÚÒ»¸ö±í a inner join µÚ¶þ¸ö±í b on a.id=b.tab1ID
order by b.time
select *
from A1 a inner join A2 b on a.id=b.tab1ID
order by b.time
select a.*,b.time
from a , b
where a.id=b.tab1ID
order by b.time
select a.*,b.time
from ±í1 a inner join ±í2 b on a.id=b.tab1id
order by b.time
ÒÔÉÏ·½·¨¿ÉÒÔ²é³ö µ«ÊÇÈç¹û±í2ûÓмǼ ²éѯµÄ½á¹ûÊÇ¿Õ
ÓÐûÓа취²é³öÈç¹ûb.timeΪ¿Õ×Ô¶¯¼ÓÉÏ¡°¿Õ¡± È»ºó±í1µÄ¼Ç¼ÒÀÈ»ÏÔʾ°¡¡£¸÷λ°ï°ï棡£¡
Ïà¹ØÎÊ´ð£º
ÎÒÏÖÔÚÊÖÍ·ÓÐÕâôһ¸öÎÊÌ⣬ÎÒÏëÈÃÒ»¸ö²Ù×÷sqlite3µÄ³ÌÐòÔÚÒ»¸öARM°å×ÓÉÏÅÜÆðÀ´£¬°å×ÓÉϵÄosÊÇwince5.0¡£
ÎÒÊÇÕâô×öµÄ£¬ÎÒÏÈ´Ósqlite3Ö÷Ò³ÏÂÔØÔ´ÂëÏÂÀ´£¬ÓÐÕâô3¸öÎļþ£ºsqlite3.c¡¢sqlite3.h¡¢sqlite3ext.h £¬ ......
sqlite ²éѯijһÊý¾ÝËùÔÚµÄÐÐÊý£º
ÆäÖÐÊý¾Ý±íÖÐûÓÐרÃűêʶÌõÊýµÄË÷ÒýÖµ£¬ÎÒÃǸù¾ÝÆäËûһЩ×ֶβéÕÒµ½Á˸ÃÊý¾Ý£¬ÏÖÔÚÐèÒª·µ»Ø¸ÃÊý¾ÝËùÔÚµÄÐÐÊý¡£
ÆäÖÐsqlite manager ÖÐÓÐÒ»¸örowid£¬µ«ÊÇÕâ¸ö²¢ÎÞ·¨· ......
sqliteµÄ¿ÕÖµ²éѯÔõôд,ÄÜÕߵ÷Ö
select * from tt where f1 is null
select * from yourTable where col is null;
SQL code:
sqlite> create table Aoqun (id int primary key,col1 int);
sqlite> ......
СµÜ Ūµã¶«Î÷¿ÉÊǵ÷Óà sqlite3_prepare Õâ¸öº¯Êý select ¾ÍºÃʹ Ö»Òª ¸Ä±äÊý¾Ý¿â µÄ¾Í²»ÐÐ ±ÈÈçinsert Ö®ÀàµÄ ËÀ´°ï¸öæ°¡ ÇëÎÊÕâÊÇʲôÔÒò °¡ Óà c ȥʵÏÖµÄ
ÄãÓõÄʲô¹¤¾ß°¡?
°ÑÄã×Ô¼ºµÄ´úÂë·¢ ......
XML code:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx ......