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

ÈçºÎ°ÑAccessÖеÄ×Ö·ûÐÍÈÕÆÚת»»³ÉÈÕÆÚÀàÐÍ

Èç¹ûÊý¾Ý¿âÖеÄʱ¼äÊÇÒÔ×Ö·ûµÄÐÎʽ´æÖüµÄ£¬ÀýÈ磺¡°2009-10-22 12:22:23¡± ÈçºÎ°ÑËüת»»³ÉÈÕÆÚÀàÐÍ£¬ÒÔ±ãÔÚSQLµÄwhere×Ó¾äÖÐÓñȱȽÏʱ¼ä´óС

ÉÏÊö´úÂë¼ÙÉèÄãµÄ×Ö·û´®¸ñʽ¶¼ÊÇÕýÈ·µÄ¡£

лл¥ÉÏ¡£
"select * from tablename where cdate(begin_date) < now()"ÆäÖÐ×Ö¶Îbegin_dateÊÇ×Ö·ûÐ͵ģ¬Àï±ß´æ·ÅµÄÊÇʱ¼ä£¬ÎÒÕâÑùдӦ¸Ã¿ÉÒÔ°É£¿

begin_date£ºÊÇʱ¼ä»¹ÊÇÈÕÆÚ»¹ÊÇÈÕÆÚʱ¼ä£¬²âÊÔһϣ¬NOW£¨£©ÊÇÈÕÆÚʱ¼ä£¬µ±ÈÕÓÃDATE£¨£©

ÈÕÆÚʱ¼ä¸úʱ¼äÊÇÁ½ÂëÊ£¬Èç¹ûÄãÖ»Êǽ«Ê±¼äת»»µ½ÈÕÆÚʱ¼ä£¬ÏµÍ³»á×Ô¶¯ÎªÄã¼ÓÉÏÈÕÆÚ£¬µ«ÊÇÈç¹ûÄãÓÃÀ´¸ú NOW »òÕß DATE ±È²»Ò»¶¨ÕýÈ·µÄ¡£

SQL code:
select * from tablename where cdate(begin_date) < now()


ÕâÑù¿ÉÒÔÁË£¬ÆäʵÄã×Ô¼ºÒ»ÊÔ¾ÍÖªµÀÁË¡£ ÁíÍâ×¢ÒâÒ»ÏÂ¶Ô null µÄ¿ØÖÆ¡£


ÈçÐèÒªÔĶÁ¸Ã»Ø¸´£¬ÇëµÇ¼»ò×¢²áCSDN!




Ïà¹ØÎÊ´ð£º

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

ÎÊÌâÈçÏ£º

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

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

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

¼±£¡¹ØÓÚEXCELµ¼ÈëACCESSµÄÎÊÌâ

EXCELÖÐÓÐÒ»ÁÐÊý×ÖÈçÏ£º          µ¼Èëµ½ACCESSÒÔºó
      ²ÄÁÏ                            ......

Äܲ»ÄÜÓÃÒ»ÌõSQLÓï¾ä¸ü¸ÄACCESSµÄ±íÃû£¿

±ÈÈçÏë°Ñ old¸Ä³É new£¬ÔõôдÄØ£¿
²»ÄÜ£¬ÓÃADO¡¡OR¡¡DAO

or
select * into new from old

£¬ÓÃADO¡¡Õâ¸öÔõô¸Ä£¿

JET-SQL²»ÄܸıíÃû¡£Ö»ÄÜÉú³ÉÒ»¸öеġ£

Ò»°ãÊÇÖ±½Ó

SQL code:
select * ......

Ôõô°Ñ¿Í»§¶ËµÄaccessÊý¾Ý¶¨Ê±¶Áµ½·þÎñÆ÷Àï

ÔÚ¿Í»§¶ËÓиöaccessÊý¾Ý¿âa.mdb£¬ÀïÃæÓÐÕűítb1£¬Óжþ¸ö×Ö¶ÎÁ÷Ë®ºÅºÍ»ý·Ö

ÔÚ¾ÖÓòÍøÀïÓиö·þÎñÆ÷ipÊÇ192.168.1.88£¬ÔÚ·þÎñÆ÷Àï×°ÁËsql2000£¬ÀïÃæÒ²ÓÐÒ»Õűíaa£¬aa±íÀïÓжþ¸ö×ֶηֱðÊÇb1ºÍb2¡£Êý¾Ý¿âÃûÊÇyy, ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ