ÈçºÎ°Ñ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!
Ïà¹ØÎÊ´ð£º
ÎÊÌâÈçÏ£º
ÓòéѯÓï¾ä
select * from tab where fil like 'CK090902'ÄܲéÕÒ³öÒ»Ìõ¼Ç¼²¢ÏÔʾ³öÀ´
¸ÄΪ
select * from tab where fil = 'CK090902'
¾Í²»ÄܲéÕÒµ½£¬Ò²ÏÔʾ²»³öÀ´ ......
ÎÒÓÃAccessÊý¾Ý¿â×öÁËÒ»¸öͼÊéÊý¾Ý¿â£¬ÀïÃæÓÐÒ»¸ö×Ö¶ÎÊÇISBN£¬¾ÍÊÇISBNºÅ£¬µ«ÊÇÖ»µÄÒ»×Ü·ÖͼÊéдµÄISBNºÅ£¬ÓеÄûд£¬Ð´µÄÄÇÒ»²¿·ÖÓеÄISBNÊÇÖظ´µÄ£¬ÄÜ·ñÓÃSQLÓïÑÔ°ÑÖظ´µÄ¹ýÂ˵ô£¬µ«Ã»Ð´ISBNºÅµÄͼÊé²»ÄܹýÂ˵ô£¬È ......
EXCELÖÐÓÐÒ»ÁÐÊý×ÖÈçÏ£º µ¼Èëµ½ACCESSÒÔºó
²ÄÁÏ   ......
±ÈÈçÏë°Ñ old¸Ä³É new£¬ÔõôдÄØ£¿
²»ÄÜ£¬ÓÃADO¡¡OR¡¡DAO
or
select * into new from old
£¬ÓÃADO¡¡Õâ¸öÔõô¸Ä£¿
JET-SQL²»ÄܸıíÃû¡£Ö»ÄÜÉú³ÉÒ»¸öеġ£
Ò»°ãÊÇÖ±½Ó
SQL code:
select * ......
ÔÚ¿Í»§¶ËÓиöaccessÊý¾Ý¿âa.mdb£¬ÀïÃæÓÐÕűítb1£¬Óжþ¸ö×Ö¶ÎÁ÷Ë®ºÅºÍ»ý·Ö
ÔÚ¾ÖÓòÍøÀïÓиö·þÎñÆ÷ipÊÇ192.168.1.88£¬ÔÚ·þÎñÆ÷Àï×°ÁËsql2000£¬ÀïÃæÒ²ÓÐÒ»Õűíaa£¬aa±íÀïÓжþ¸ö×ֶηֱðÊÇb1ºÍb2¡£Êý¾Ý¿âÃûÊÇyy,
......