SQL Server ϵͳ±í
sysforeignkeys
°üº¬¹ØÓÚ±í¶¨ÒåÖÐµÄ FOREIGN KEY Ô¼ÊøµÄÐÅÏ¢¡£¸Ã±í´æ´¢ÔÚÿ¸öÊý¾Ý¿âÖС£
ÁÐÃû Êý¾ÝÀàÐÍ ÃèÊö
constid int FOREIGN KEY Ô¼ÊøµÄ ID¡£
fkeyid int ¾ßÓÐ FOREIGN KEY Ô¼ÊøµÄ±í¶ÔÏó ID¡£
rkeyid int ÔÚ FOREIGN KEY Ô¼ÊøÖÐÒýÓõıí¶ÔÏó ID¡£
fkey smallint ÕýÔÚÒýÓõÄÁÐ ID¡£
rkey smallint ÒÑÒýÓõÄÁÐ ID¡£
keyno smallint ¸ÃÁÐÔÚÒýÓÃÁÐÁбíÖеÄλÖá£
sysindexes
Êý¾Ý¿âÖеÄÿ¸öË÷ÒýºÍ±íÔÚ±íÖи÷Õ¼Ò»ÐС£¸Ã±í´æ´¢ÔÚÿ¸öÊý¾Ý¿âÖС£
ÁÐÃû Êý¾ÝÀàÐÍ ÃèÊö
id int ±í ID£¨Èç¹û indid = 0 »ò 255£©¡£·ñÔòΪË÷ÒýËùÊô±íµÄ ID¡£
status int ÄÚ²¿ÏµÍ³×´Ì¬ÐÅÏ¢¡£
first binary(6) Ö¸ÏòµÚÒ»Ò³»ò¸ùÒ³µÄÖ¸Õë¡£
indid smallint Ë÷Òý ID£º
1 = ¾Û¼¯Ë÷Òý
>1 = ·Ç¾Û¼¯
255 = ¾ßÓÐ text »ò image Êý¾ÝµÄ±íÌõÄ¿
root binary(6) Èç¹û indid >= 1 ºÍ < 255£¬ root ÊÇÖ¸Ïò¸ùÒ³µÄÖ¸Õë¡£Èç¹û indid = 0 »ò indid = 255£¬ root ÊÇÖ¸Ïò×îºóÒ»Ò³µÄÖ¸Õë¡£
minlen smallint ×îСÐдóС¡£
keycnt smallint ¼üµÄÊýÄ¿¡£
groupid smallint ÔÚÆäÉÏ´´½¨¶ÔÏóµÄÎļþ×é ID¡£
dpages int Èç¹û indid = 0 »ò indid = 1£¬ dpages ÊÇÒÑÓÃÊý¾ÝÒ³µÄ¼ÆÊý¡£Èç¹û indid = 255£¬ÆäÉèÖÃΪ 0¡£·ñÔòÊÇÒÑÓÃË÷ÒýÒ³µÄ¼ÆÊý¡£
reserved int Èç¹û indid = 0 »ò indid = 1£¬ reserved ÊÇ·ÖÅä¸øËùÓÐË÷ÒýºÍ±íÊý¾ÝµÄÒ³¼ÆÊý¡£Èç¹û indid = 255£¬ reserved ÊÇ·ÖÅä¸ø text »ò image Êý¾ÝµÄÒ³¼ÆÊý¡£·ñÔòÊÇ·ÖÅä¸øË÷ÒýµÄÒ³¼ÆÊý¡£
used int Èç¹û indid = 0 »ò indid = 1£¬ used ÊÇÓÃÓÚËùÓÐË÷ÒýºÍ±íÊý¾ÝµÄ×ÜÒ³Êý¡£Èç¹û indid = 255£¬ used ÊÇÓÃÓÚ text »ò image Êý¾ÝµÄÒ³¼ÆÊý¡£·ñÔòÊÇÓÃÓÚË÷ÒýµÄÒ³¼ÆÊý¡£
rowcnt bigint »ùÓÚ indid = 0 ºÍ indid = 1 µÄÊý¾Ý¼¶ÐмÆÊý¡£Èç¹û indid = 255£¬ rowcnt ÉèÖÃΪ 0¡£
rowmodctr int ¶Ô×ÔÉϴθüбíµÄͳ¼Æºó²åÈ롢ɾ³ý»ò¸üÐÂÐеÄ×ÜÊý½øÐмÆÊý¡£
xmaxlen smallint ×î´óÐдóС¡£
maxirow smallint ×î´ó·ÇÒ¶Ë÷ÒýÐдóС¡£
OrigFillFactor tinyint ´´½¨Ë÷ÒýʱʹÓõÄÆðʼÌî³äÒò×ÓÖµ¡£²»±£Áô¸ÃÖµ£»È»¶ø£¬Èç¹ûÐèÒªÖØд´
Ïà¹ØÎĵµ£º
Ò»¡£SQL Server µÄÈýÖÖ×Ô¶¨Ò庯Êý
“×Ô¶¨Ò庯Êý”ÊÇÎÒÃÇƽ³£µÄ˵·¨£¬¶ø“Óû§¶¨ÒåµÄº¯Êý”ÊÇ SQL Server ÖÐÊéÃæµÄ˵·¨¡£
SQL Server 2000 ÔÊÐíÓû§´´½¨×Ô¶¨Ò庯Êý£¬×Ô¶¨Ò庯Êý¿ÉÒÔÓзµ»ØÖµ¡£
×Ô¶¨Ò庯Êý·ÖΪ£º±êÁ¿Öµº¯Êý»ò±íÖµº¯Êý
Èç¹û RETURNS ×Ó¾äÖ¸¶¨Ò»ÖÖ±êÁ¿Êý¾ÝÀàÐÍ£¬Ôòº¯ÊýΪ±êÁ¿Öµº¯Êý¡£¿É ......
java Á¬½Ó sql 2005 µÄ·½·¨£º
1¡£µ½Î¢Èí¹Ù·½ÍøÕ¾ÏÂÔØ2005µÄjdbc²¢½âѹ£¬»ñµÃÎļþsqljdbc.jar
2¡£¸´ÖÆÎļþsqljdbc.jarµ½jdkĿ¼\jdk1.5\jre\lib\extÏ¡£
3¡£¿ªÊ¼-¡µ³ÌÐò-¡µsql server 2005-¡µÅäÖù¤¾ß-¡µSQL Server Configuration Manager¡£Æô¶¯sql 2005·þÎñ¡£
µã»÷ sql server2005ÍøÂçÅäÖýڵ㣬²¢Ñ¡ÖÐ&rd ......
select sql_text, spid, v$session.program, process
from v$sqltext, v$session, v$process
where v$sqltext.address = v$session.sql_address
and v$sqltext.hash_value = v$session.sql_hash_value
and v$session.paddr = v$process.addr
and v$process.spid in (4335);
×¢Ò ......
´´½¨µÄÊý¾Ý¿âÖÐÇø·Ö´óСд
create database test COLLATE Chinese_PRC_CS_AS
Êý¾Ý¿âÖÐÇø·Ö´óСд
alter database test COLLATE Chinese_PRC_CS_AS
»Ö¸´Ä¬ÈϵIJ»Çø·Ö´óСд
alter database test COLLATE Chinese_PRC_CI_AS ......
Êý¾Ý²É¼¯Öг£ÓõÄSQLÓï¾ä
ÏàͬµÄSQLÓï¾äÔËÓõ½²»Í¬Êý¾Ý¿âÖлáÓÐÂÔ΢µÄ²î±ð£¬¶Ô×Ö·û±äÁ¿µÄÒªÇó£¬Ïà¹Øº¯ÊýµÄ±ä»¯£¬ÒÔ¼°Óï·¨¹æÔòµÄ²»Í¬µÈµÈ£¬ÀýÈ磺oracleÊý¾Ý¿âÖжÔ×Ö¶ÎÃüÃû±ðÃûʱ²»ÐèÒªas ×Ö·û£¬Ã»ÓÐmonth()£¬year£¨£©µÈʱ¼äº¯ÊýµÈµÈ£¬accessÊý¾Ý¿âÖÐÔÚʹÓÃinner joinÖ´ÐÐÄÚ²¿ÁªºÏʱÌõ¼þÐèÓ㨣©£¬µ±È»»¹Óкܶ ......