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

ÈçºÎ°ÑÕâ¾ä¸Ä³ÉÔÚaccessÀïÕý³£ÔËÐеÄ?

select max(classname) as classname,max(parentpath) as parentpath,max(rootid) as rootid,max(classid) as classid from prodclass where parentpath like '%0,3%' and Child=0 group by classname order by rootid,classid
Õâ¾äÔÚSQL2000²éѯ·ÖÎöÆ÷ÀïÊÇûÎÊÌâµÄ
µ«ÔÚaccessÀïÈ´²»ÐÐ
ÄÄλ¸ßÊÖ°ï¿´¿´ÎÊÌâÔÚÄÄÀï
ʲôÎÊÌâ

ÓÉÓÚÊÇasp+access¿ª·¢µÄÍøÕ¾
ûÓб¨¾ßÌåµÄ´íÎó
¿´Ñù×ÓÊdz¬Ê±...

classid parentpath classname  rootid  dd      dda  child
1 0,1   sfddsf11 1 df sdf 0
2 0,2   sdfdsf2 2 fsf sdfdsf 0
3 0,1   sdfdsf2 3 sdfs sdfds 0
4 0,3   sdfdsfds3 4 sfdsf sfsdf 0
5 0,3   sdfdsfds3 90 sdfsfsd dfsfsf 0
6 0,4   sfddsf11 6 fsdf sfds 0
7 0,4   sdfdsfds3 7 gs sfsdf 0
8 0,3   sdfsf8      70 sdf fs 0
9 0,3   sfdsf777 9 sfs sfs 0
--------------------------
Êý¾Ý½á¹¹ÈçÉÏ
ÎÒÊÇÏëɸѡ³öparentpathΪ£¢£°,£³£¢£¬classname²»Öظ´µÄÊý¾Ý
×îºó°´rootidÀ´ÅÅÐò


ÄãÔÚACCESS²éѯÖÐÖ±½ÓÔËÐп´¿´½á¹û

²»ºÃÒâ˼ÓеãÂÒÈçÏÂ
£­£­£­£­£­£­£­£­£­£­£­
classid  parentpath  classname    rootid    dd    dda    child
1            0,1      sfddsf11      1      df    sdf      0
2   


Ïà¹ØÎÊ´ð£º

access ²éѯ¼Ç¼µÄÎÊÌâ?

ÎÊÌâÈçÏ£º

ÓòéѯÓï¾ä
select * from tab where fil like 'CK090902'ÄܲéÕÒ³öÒ»Ìõ¼Ç¼²¢ÏÔʾ³öÀ´
¸ÄΪ
select * from tab where fil = 'CK090902'
¾Í²»ÄܲéÕÒµ½£¬Ò²ÏÔʾ²»³öÀ´ ......

ÈçºÎͨ¹ýADOʹÓþۺϺ¯ÊýÀ´²éѯ(Êý¾Ý¿âΪACCESS)

_RecordsetPtr CMyAdo::SelectRecord(string &where, string &tablename,string &field, int way )
{
    int ret = 0;
  _RecordsetPtr pset;
CString  sql;
& ......

Access²éÕÒÖظ´ÎÊÌâ - ÆäËûÊý¾Ý¿â¿ª·¢ / Access

ÎÒÓÃAccessÊý¾Ý¿â×öÁËÒ»¸öͼÊéÊý¾Ý¿â£¬ÀïÃæÓÐÒ»¸ö×Ö¶ÎÊÇISBN£¬¾ÍÊÇISBNºÅ£¬µ«ÊÇÖ»µÄÒ»×Ü·ÖͼÊéдµÄISBNºÅ£¬ÓеÄûд£¬Ð´µÄÄÇÒ»²¿·ÖÓеÄISBNÊÇÖظ´µÄ£¬ÄÜ·ñÓÃSQLÓïÑÔ°ÑÖظ´µÄ¹ýÂ˵ô£¬µ«Ã»Ð´ISBNºÅµÄͼÊé²»ÄܹýÂ˵ô£¬È ......

Access²éÕÒÖظ´ÎÊÌâ

ACCESSÊý¾Ý¿âÖÐÓÐÒ»¸ötablename±í£¬Éè¼ÆÈçÏ 
±àºÅ,ÊéÃû,×÷Õß,³ö°æʱ¼ä,³ö°æÉç,ISBN,Ŀ¼,¼ò½é
ÆäÖгý¡°±àºÅ¡±Îª×Ô¶¯±àºÅÍ⣬ÆäËü¶¼Îª¡°±¸×¢¡± 
ÆäÖÐ"±àºÅ"άһ£¬ÔÚ¡°ISBN¡±ÖÐÓеÄΪ¿ÕÖµ£¬ ......

¹ØÓÚado·ÃÎÊaccess ²»ÄÜÓÃwhereµÄÎÊÌâ

ÎÒÓà ado ·ÃÎÊaccess¿âʱ Óà select * from user_info where user_id=ÕÅÈý ¾Í³ö´í£¬Èç¹ûÈ¥µô where user_id £¬Ö»ÊÇselect * from user_info¾ÍûÎÊÌâ Ϊʲô²»ÄܼÒÑ¡ÔñÄØ °ï°ïæ½â´ðһϠлл
select * from user_in ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ