AccessÊý¾Ý¿â×Ö¶ÎÀàÐÍ˵Ã÷ÒÔ¼°ÓëSQLÖ®¼äµÄ¶ÔÕÕ¹Øϵ
Îı¾ nvarchar(n)
±¸×¢ ntext
Êý×Ö(³¤ÕûÐÍ) int
Êý×Ö(ÕûÐÍ) smallint
Êý×Ö(µ¥¾«¶È) real
Êý×Ö(Ë«¾«¶È) float
Êý×Ö(×Ö½Ú) tinyint
»õ±Ò money
ÈÕÆÚ smalldatetime
²¼¶û bit
¸½£º×ª»»³ÉSQLµÄ½Å±¾¡£
ALTER TABLE tb ALTER COLUMN aa Byte Êý×Ö[×Ö½Ú]
ALTER TABLE tb ALTER COLUMN aa Long Êý×Ö[³¤ÕûÐÍ]
ALTER TABLE tb ALTER COLUMN aa Short Êý×Ö[ÕûÐÍ]
ALTER TABLE tb ALTER COLUMN aa Single Êý×Ö[µ¥¾«¶È
ALTER TABLE tb ALTER COLUMN aa Double Êý×Ö[Ë«¾«¶È]
ALTER TABLE tb ALTER COLUMN aa Currency »õ±Ò
ALTER TABLE tb ALTER COLUMN aa Char Îı¾
ALTER TABLE tb ALTER COLUMN aa Text(n) Îı¾£¬ÆäÖÐn±íʾ×ֶδóС
ALTER TABLE tb ALTER COLUMN aa Binary ¶þ½øÖÆ
ALTER TABLE tb ALTER COLUMN aa Counter ×Ô¶¯±àºÅ
ALTER TABLE tb ALTER COLUMN aa Memo ±¸×¢
ALTER TABLE tb ALTER COLUMN aa Time ÈÕÆÚ/ʱ¼ä
ÔÚ±íµÄÉè¼ÆÊÓͼÖУ¬Ã¿Ò»¸ö×ֶζ¼ÓÐÉè¼ÆÀàÐÍ£¬AccessÔÊÐí¾ÅÖÖÊý¾ÝÀàÐÍ£ºÎı¾¡¢±¸×¢¡¢ÊýÖµ¡¢ÈÕÆÚ/ʱ¼ä¡¢»õ
±Ò¡¢×Ô¶¯±àºÅ¡¢ÊÇ/·ñ¡¢OLE¶ÔÏó¡¢³¬¼¶Á´½Ó¡¢²éѯÏòµ¼¡£
¡¡Îı¾£ºÕâÖÖÀàÐÍÔÊÐí×î´ó255¸ö×Ö·û»òÊý×Ö£¬AccessĬÈϵĴóСÊÇ50¸ö×Ö·û£¬¶øÇÒϵͳֻ±£´æÊäÈëµ½×Ö¶ÎÖеÄ
×Ö·û£¬¶ø²»±£´æÎı¾×Ö¶ÎÖÐδÓÃλÖÃÉϵĿÕ×Ö·û¡£¿ÉÒÔÉèÖÓ×ֶδóС”ÊôÐÔ¿ØÖÆ¿ÉÊäÈëµÄ×î´ó×Ö·û³¤¶È¡£
¡¡±¸×¢£ºÕâÖÖÀàÐÍÓÃÀ´±£´æ³¤¶È½Ï³¤µÄÎı¾¼°Êý×Ö£¬ËüÔÊÐí×Ö¶ÎÄܹ»´æ´¢³¤´ï64000¸ö×Ö·ûµÄÄÚÈÝ¡£µ«Access²»
ÄܶԱ¸×¢×ֶνøÐÐÅÅÐò»òË÷Òý£¬È´¿ÉÒÔ¶ÔÎı¾×ֶνøÐÐÅÅÐòºÍË÷Òý¡£ÔÚ±¸×¢×Ö¶ÎÖÐËäÈ»¿ÉÒÔËÑË÷Îı¾£¬µ«È´²»Èç
ÔÚÓÐË÷ÒýµÄÎı¾×Ö¶ÎÖÐËÑË÷µÃ¿ì¡£
¡¡Êý×Ö£ºÕâÖÖ×Ö¶ÎÀàÐÍ¿ÉÒÔÓÃÀ´´æ´¢½øÐÐËãÊõ¼ÆËãµÄÊý×ÖÊý¾Ý£¬Óû§»¹¿ÉÒÔÉèÖÓ×ֶδóС”ÊôÐÔ¶¨ÒåÒ»¸öÌض¨
µÄÊý×ÖÀàÐÍ£¬ÈκÎÖ¸¶¨ÎªÊý×ÖÊý¾ÝÀàÐ͵Ä×ÖÐÍ¿ÉÒÔÉèÖóɓ×Ö½Ú”¡¢“ÕûÊý”¡¢“³¤ÕûÊý”¡¢“µ¥¾«¶ÈÊý”¡¢
“Ë«¾«¶ÈÊý”¡¢“ͬ²½¸´ÖÆID”¡¢“СÊý”ÎåÖÖÀàÐÍ¡£ÔÚAccessÖÐͨ³£Ä¬ÈÏΪ“Ë«¾«¶ÈÊý”¡£
ÈÕÆÚ/ʱ¼ä£ºÕâÖÖÀàÐÍÊÇÓÃÀ´´æ´¢ÈÕÆÚ¡¢Ê±¼ä»òÈÕÆÚʱ¼äÒ»ÆðµÄ£¬Ã¿¸öÈÕÆÚ/ʱ¼ä×Ö¶ÎÐèÒª8¸ö×Ö½ÚÀ´´æ´¢¿Õ¼ä¡£
¡¡»õ±Ò£ºÕâÖÖÀàÐÍÊÇÊý×ÖÊý¾ÝÀàÐ͵ÄÌØÊâÀàÐÍ£¬µÈ¼ÛÓÚ¾ßÓÐË«¾«¶ÈÊôÐÔµÄÊý×Ö×Ö¶ÎÀàÐÍ¡£Ïò»õ±Ò×Ö¶ÎÊäÈëÊý¾Ý
ʱ£¬²»±Ø¼üÈëÈËÃñ±Ò·ûºÅºÍǧλ´¦µÄ¶ººÅ£¬Access»á×Ô¶¯ÏÔÊ
Ïà¹ØÎĵµ£º
Éý»ªÌṩÖÕÉíÃâ·ÑASP+access PHP+mysqlÐéÄâÖ÷»ú
Ò»£ºÉý»ªÍøÂç¿Æ¼¼ÓÐÏÞ¹«Ë¾,ÓëÉý»ªÍ¬ÔÚÕ¾³¤ÖÕÉíÃâ·Ñ¿Õ¼ä·ö³Ö¼Æ»®.
1¡¢×ð¾´µÄÓû§ÄúºÃ,Ò²ÐíÄú»¹ÔÚΪÿÄêÒ»½»µÄ¿Õ¼ä·ÑÓ÷¢³î,Ò²ÐíÄúÏë»ñµÃÒ»¸ö¸üÓÅÖʵĿռäÈ´²»ÏëͶÈëÌ«¶à,´ÓÏÖÔÚÆð ÕâЩÎÊÌ⽫ÓÈжø½â→Éý»ªÍøÂç←ÓëÉý»ªÍ¬ÔÚÕ¾³¤·ö³Ö¼Æ»®È«ÃæÆô¶¯¡£
2¡¢Ã»ÓÐ×¢²á¹«Ë¾ ......
http://www.umgr.com/blog/PostView.aspx?bpId=36294
1. Ö´ÐÐsqlÓï¾ä
int sqlite3_exec(sqlite3*£¬ const char *sql£¬ sqlite3_callbacksql Óï·¨
£¬ void *£¬ char **errmsg );
Õâ¾ÍÊÇÖ´ÐÐÒ»Ìõ sql Óï¾äµÄº¯Êý¡£
µÚ1¸ö²ÎÊý²»ÔÙ˵ÁË£¬ÊÇÇ°Ãæopenº¯ÊýµÃµ½µÄÖ¸Õ롣˵ÁËÊǹؼüÊý¾Ý½á¹¹¡£
µÚ2¸ö²ÎÊýconst char ......
Èç¹ûÄã¾³£Óöµ½ÏÂÃæµÄÎÊÌ⣬Äã¾ÍÒª¿¼ÂÇʹÓÃSQL ServerµÄÄ£°åÀ´Ð´¹æ·¶µÄSQLÓï¾äÁË£º
SQL³õѧÕß¡£
¾³£Íü¼Ç³£ÓõÄDML»òÊÇDDL SQL Óï¾ä¡£
ÔÚ¶àÈË¿ª·¢Î¬»¤µÄSQLÖУ¬Ã¿¸öÈ˶¼ÓÐ×Ô¼ºµÄSQLÏ°¹ß£¬Ã»ÓÐÒ»Ì×ͳһµÄ¹æ·¶¡£
ÔÚSQL Server Management StudioÖУ¬ÒѾ¸ø´ó¼ÒÌṩÁ˺ܶೣÓõÄÏÖ³ÉSQL¹æ·¶Ä£°å¡£
SQL Server Management ......
Use equality first.
ʹÓõÈÁ¬½Ó
Use range operators only where equality does not apply.
Ö»ÓÐÔÚµÈÁ¬½Ó²»¿ÉÓõÄÇé¿öÏÂÊÂÓÉÇø¼äÁ¬½Ó
Avoid use of negatives in the form of !=
or NOT.
±ÜÃâʹÓà £¡= »òÕß not
Avoid LIKE pattern matching.
±ÜÃâʹÓà LIKEÆ¥Åä
Try to retrieve specific rows and in small n ......