set autotrace in SQL*Plus
set autotrace off
set autotrace on
set autotrace traceonly
set autotrace on explain
set autotrace on statistics
set autotrace on explain statistics
set autotrace traceonly explain
set autotrace traceonly statistics
set autotrace traceonly explain statistics
set autotrace off explain
set autotrace off statistics
set autotrace off explain statistics
set autotrace off
set autotrace on
set autotrace traceonly
set autotrace on explain
set autotrace on statistics
set autotrace on explain statistics
set autotrace traceonly explain
set autotrace traceonly statistics
set autotrace traceonly explain statistics
set autotrace off explain
set autotrace off statistics
set autotrace off explain statistics
ÉèÖÃautotraceÔÊÐíÏÔʾDMLÓï¾äµÄһЩͳ¼ÆÐÅÏ¢ºÍ/»ò²éѯ¼Æ»®¡£
set autotrace on: ΪÓï¾äÏÔʾͳ¼ÆÐÅÏ¢ºÍÖ´Ðмƻ®¡£
set autotrace on explain: Ö»ÏÔʾִÐмƻ®¡£
set autotrace on statistics: Ö»ÏÔʾͳ¼ÆÐÅÏ¢¡£
set autotrace traceonly: ÏÔʾִÐмƻ®ºÍͳ¼ÆÐÅÏ¢£¬µ«ÊÇ´òÓ¡²éѯ½á¹û¡£
set autotrace off: ¹Ø±Õautotrace
Èç¹ûÓÃstatisticsÑ¡Ïî´ò¿ªautotrace£¬ÄÇô½«ÏÔʾÏÂÃæµÄͳ¼ÆÐÅÏ¢£º
recursive calls
db block gets
consistent gets
physical reads
redo size
bytes sent via SQL*Net to client
bytes received via SQL*Net from client
SQL*Net roundtrips to/from client
sorts (memory)
sorts (disk)
Ç°ÖÃÌõ¼þ
autotraceµÄÖ´Ðмƻ®ÌØÐÔÐèÒª´´½¨Ò»¸öplan_table±í£¬¿ÉÒÔÓýű¾
$ORACLE_HOME/rdbms/admin/utlxplan.sql ´´½¨
ͳ¼ÆÌØÐÔÐèÒªÓû§¾ßÓÐv_$sesstat, v_$statname ºÍ v_$session±íÉϵIJéѯȨÏÞ¡£
Oracle°²×°Ê±¸½´øµÄ$ORACLE_HOME/sqlplus/admin/plustrce.sql »á°²×°plustrace½ÇÉ«£¬plustrace½ÇÉ«±»ÊÚÓèÁËÕâЩ²éѯȨÏÞ¡£Èç¹ûplustrace½ÇÉ«±»ÊÚÓèÓû§£¬ÄÇôËû¾Í¿ÉÒÔ¾ßÓдò¿ªautotraceµÄȨÏÞ¡£»òÕßÄãÒ²¿ÉÒÔ°Ñplustrace½ÇÉ«ÊÚÓèpublic¡£
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/zjliu1984/archive/2009/07/01/43129
Ïà¹ØÎĵµ£º
character-set-server = GB2312
collation-server = latin1_general_ci
MySQL×Ö·û¼¯ GBK¡¢GB2312¡¢UTF8Çø±ð ½â¾ö MYSQLÖÐÎÄÂÒÂëÎÊÌâ ÊÕ²Ø
MySQLÖÐÉæ¼°µÄ¼¸¸ö×Ö·û¼¯
character-set-server/default-character-set£º·þÎñÆ÷×Ö·û¼¯£¬Ä¬ÈÏÇé¿öÏÂËù²ÉÓõġ£
character-set-database£ºÊý¾Ý¿â×Ö·û¼¯¡£
character-set-table£ºÊ ......
1.Ñ¡Ôñ×îÓÐЧÂʵıíÃû˳Ðò(Ö»ÔÚ»ùÓÚ¹æÔòµÄÓÅ»¯Æ÷ÖÐÓÐЧ)¡¡¡¡
¡¡¡¡ SQLSERVERµÄ½âÎöÆ÷°´ÕÕ´ÓÓÒµ½×óµÄ˳Ðò´¦Àífrom×Ó¾äÖеıíÃû£¬Òò´Ëfrom×Ó¾äÖÐдÔÚ×îºóµÄ±í£¨»ù´¡±ídriving table£©½«±»×îÏÈ´¦Àí£¬ÔÚfrom×Ó¾äÖаüº¬¶à¸ö±íµÄÇé¿öÏ£¬±ØÐëÑ¡Ôñ¼Ç¼ÌõÊý×îÉٵıí×÷Ϊ»ù´¡±í£¬µ±SQLSERVER´¦Àí¶à¸ö±íʱ£¬»áÔËÓÃÅÅÐò¼°ºÏ²¢µÄ·½Ê½Á ......
ASPµ÷Óô洢¹ý³ÌµÄ·½·¨£º
---- ¡¡¡¡µ÷Óô洢¹ý³ÌµÄ·½·¨ÐèҪʹÓÃADOµÄCommand¶ÔÏó¡£Command¶ÔÏóÊǶÔÒ»¸öÊý¾ÝÔ´ÔËÐÐÌض¨ÃüÁîµÄ¶¨Ò壨ÀýÈ磬һ¸öSQL²éѯ»òÒ»¸öSQL´æ´¢¹ý³Ì£©¡£ÏÂÃæÒÔMS SQL SERVER6.5Ϊºǫ́Êý¾Ý¿â£¬½éÉÜASPµ÷Óô洢¹ý³ÌµÄ·½·¨¡£
---- ¡ ......
SQL Óï·¨Ìصã:
1 ÿ¸öÓï¾äÒÔ;½áÊø£¬ÖмäÓÃ()°üº¬£¬,¼ä¸ô¡£
2 ¶Ô±äÁ¿ºÍ³£Á¿µÈÐèÒªÓÃ()°üº¬¡£
3 ¹Ø¼ü×Ö´óд£¬±äÁ¿ÃûÊ×´óд×ÖĸÓñíÃû±íÕ÷£¬È»ºóÓÃСд±íÕ÷ÊôÐÔ
»ù±¾Óï¾ä:
DESC ±íÃû
²é¿´±íÏêϸÊôÐÔ
½¨±í: CREATE TABLE ±íÃû
( ÊôÐÔÃû ÀàÐÍ(Ô¼Êø) Ö÷¼ü(PRIMARY KEY)
Èç¹ûÊÇÓòΪÖ÷¼ü PRIMARY KEY(ÊôÐÔ.. ......