´ÓOracle¡¢SQLServerÖÐÈ¡µÃ×¢ÊÍ
¸ù¾Ý±í½á¹¹Éú³ÉJavaÎļþµÄ¹¤¾ß£¬ÔÚÈ¡µÃ±íµÄ×Ö¶ÎʱÈçºÎÈ¡µÃ±íµÄ¸÷ÖÖÐÅÏ¢ºÍ×¢ÊÍ£¬¾¶à·½ËÑÑ°ÕÒµ½ÈçÏÂ×ÊÁϱ¸Ó㺠oracle£º
user_tab_comments;±í×¢ÊÍ
user_col_comments;±í×Ö¶Î×¢ÊÍ
ÒÔÉÏÁ½¸öÖ»ÄÜ»ñÈ¡×Ô¼ºÓû§µÄ±íµÄ×¢ÊÍÐÅÏ¢£¬Èç¹ûÒª·ÃÎÊ×Ô¼ºÄܹ»·ÃÎʵÄÆäËûÓû§µÄ±í£¬ÔòÐèҪʹÓãº
all_tab_comments;±í×¢ÊÍ
all_col_comments;±í×Ö¶Î×¢ÊÍ
µ±È»£¬Èç¹ûÓÐDBAȨÏÞ£¬Ôò¿ÉÒÔʹÓÃ
dba_tab_comments;±í×¢ÊÍ
dba_col_comments;±í×Ö¶Î×¢ÊÍ
dba*ºÍall*×îºÃÖ¸¶¨ownerÌõ¼þ¡£user*ûÓиÃ×Ö¶Î
user_tab_comments;±í×¢ÊÍ
user_col_comments;±í×Ö¶Î×¢ÊÍ
ÒÔÉÏÁ½¸öÖ»ÄÜ»ñÈ¡×Ô¼ºÓû§µÄ±íµÄ×¢ÊÍÐÅÏ¢£¬Èç¹ûÒª·ÃÎÊ×Ô¼ºÄܹ»·ÃÎʵÄÆäËûÓû§µÄ±í£¬ÔòÐèҪʹÓãº
all_tab_comments;±í×¢ÊÍ
all_col_comments;±í×Ö¶Î×¢ÊÍ
µ±È»£¬Èç¹ûÓÐDBAȨÏÞ£¬Ôò¿ÉÒÔʹÓÃ
dba_tab_comments;±í×¢ÊÍ
dba_col_comments;±í×Ö¶Î×¢ÊÍ
dba*ºÍall*×îºÃÖ¸¶¨ownerÌõ¼þ¡£user*ûÓиÃ×Ö¶Î
MSSQL£º
<PRE class=csharp name="code">select b.[value]
from syscolumns a left join sysproperties b on a.id=b.id
and a.colid=b.smallid inner join sysobjects c on a.id=c.id
and a.[name]='ÁÐÃû' and c.[name]='
Ïà¹ØÎĵµ£º
oracle Êý¾Ý¿âÁ¬½Ó¾ÍÏñÄãÔÚ³ÌÐòÖн¨Á¢Ò»¸öµ½Êý¾Ý¿âµÄÁ¬½ÓÒ»Ñù¡£
Èç¹ûÊý¾Ý¿â²»ÔÚ±¾µØÖ÷»ú,±ØÐëÔÚ$ORACLE_HOME/network/admin/tnsnames.oraÖÐÅäÖÃÏàÓ¦µÄtns£¬È»ºó³ÌÐò²ÅÄÜͨ¹ýÅäÖúõÄtns·ÃÎÊÊý¾Ý¿â£¬µ«ÊÇjavaͨ¹ýthin·½Ê½·ÃÎÊoracleÀýÍ⣬¿ÉÒÔ²ÉÓÃÔÚ±¾µØÅäÖúõÄtns±ðÃû£¬Ò²¿ÉÒÔ²ÉÓÃtnsÈ«½âÎöÃû£¬²ÉÓñðÃûµÈºÅºóµÄÈ« ......
alter table t_att_over_haul_safe_pres add c clob;
update t_att_over_haul_safe_pres set c=prt_precautions;
alter table t_att_over_haul_safe_p ......
Ë÷ÒýÌøԾʽɨÃè(index skip scan)ÊÇOracle9iµÄÒ»¸öеÄÖ´ÐÐÌØÐÔ£¬ÓÈÆäÊÊÓÃÓÚʹÓÃÁ¬½ÓË÷ÒýºÍ·ÃÎʶàÖµË÷ÒýµÄOracle²éѯ¡£
Ë÷ÒýÌøԾʽɨÃè(index skip scan)ÊÇOracle9iµÄÒ»¸öеÄÖ´ÐÐÌØÐÔ£¬ÓÈÆäÊÊÓÃÓÚʹÓÃÁ¬½ÓË÷ÒýºÍ·ÃÎʶàÖµË÷ÒýµÄOracle²éѯ¡£ÈÃÎÒÃÇ¿´ÒÔϵķ¶Àý¡£Çë×¢Òâ ......
>>mysql:
1¡¢²é¿´ËùÓбíÃû£º
show tables [from db_name];
2¡¢²é¿´×Ö¶ÎÐÅÏ¢
SHOW FULL COLUMNS from db_name.table_name
»ñÈ¡ÒÔÏÂÐÅÏ¢
Field £º×Ö¶ÎÃû
Type£º×Ö¶ÎÀàÐÍ
Collation£º×Ö·û¼¯ £¨mysql 5.0ÒÔÉÏÓУ©
Null £ºÊÇ·ñ¿ÉÒÔΪNULL
Key£ºË÷Òý£¨PRI,unique,index)
Default£ºÈ±Ê¡Öµ
Extra£º¶îÍ⣨ÊÇ·ñ aut ......
mysql ´ó¶ÔÏó´æÈ¡:
ÀàÐÍÒ»°ãÓ¦¸ÃÓÃmediumblod,
blobÖ»ÄÜ´æ2µÄ16´Î·½¸öbyte,
mediumblodÊÇ24´Î·½,
Ò»°ãÀ´Ëµ¹»ÓÃÁË.longblobÊÇ32´Î·½ÓÐЩ´ó.
MYSQLĬÈÏÅäÖÃÖ»ÄÜ´æ1M´óСµÄÎļþ,ÒªÐÞ¸ÄÅäÖÃ,WIN°æ±¾µÄÔÚmysql.iniÎļþÖÐ
ÐÞ¸Ämax_allowed_packet,net_buffer_lengthµÈ¼¸¸ö²ÎÊý,»òÖ±½ÓSET GLOBAL varName=value.
linux°æ± ......