Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

SQLÖÐdbo.

Êý¾Ý¿âËùÓÐÕß  (DataBase Owner)
dbo   ÊǾßÓÐÔÚÊý¾Ý¿âÖÐÖ´ÐÐËùÓлµÄ°µÊ¾ÐÔȨÏÞµÄÓû§¡£½«¹Ì¶¨·þÎñÆ÷½ÇÉ«   sysadmin   µÄÈκγÉÔ±¶¼Ó³É䵽ÿ¸öÊý¾Ý¿âÄÚ³ÆΪ   dbo   µÄÒ»¸öÌØÊâÓû§ÉÏ¡£ÁíÍ⣬Óɹ̶¨·þÎñÆ÷½ÇÉ«   sysadmin   µÄÈκγÉÔ±´´½¨µÄÈκζÔÏó¶¼×Ô¶¯ÊôÓÚ   dbo¡£   
    
ÀýÈ磬Èç¹ûÓû§   Andrew   Êǹ̶¨·þÎñÆ÷½ÇÉ«   sysadmin   µÄ³ÉÔ±£¬²¢´´½¨±í   T1£¬Ôò±í   T1   ÊôÓÚ   dbo£¬²¢ÒÔ   dbo.T1   ¶ø²»ÊÇ  Andrew.T1   ½øÐÐÏÞ¶¨¡£Ïà·´£¬Èç¹û   Andrew   ²»Êǹ̶¨·þÎñÆ÷½ÇÉ«   sysadmin   µÄ³ÉÔ±£¬¶øÖ»Êǹ̶¨Êý¾Ý¿â½ÇÉ«   db_owner   µÄ³ÉÔ±£¬²¢´´½¨±í   T1£¬Ôò   T1   ÊôÓÚ   Andrew£¬²¢ÏÞ¶¨Îª   Andrew.T1¡£¸Ã±íÊôÓÚ   Andrew£¬ÒòΪ¸Ã³ÉԱûÓн«±íÏÞ¶¨Îª   dbo.T1¡£   
    
ÎÞ·¨É¾³ý   dbo   Óû§£¬ÇÒ´ËÓû§Ê¼ÖÕ³öÏÖÔÚÿ¸öÊý¾Ý¿âÖС£   
    
Ö»ÓÐÓÉ   sysadmin   ¹Ì¶¨·þÎñÆ÷½ÇÉ«³ÉÔ±£¨»ò   dbo   Óû§£©´´½¨µÄ¶ÔÏó²ÅÊôÓÚ   dbo¡£ÓÉÈκÎÆäËûÒ²²»ÊÇ   syadmin   ¹Ì¶¨·þÎñÆ÷½ÇÉ«³ÉÔ±µÄÓû§£¨°üÀ¨   db_owner   ¹Ì¶¨Êý¾Ý¿â½ÇÉ«³ÉÔ±£©´´½¨µÄ¶ÔÏ󣺠    
    
ÊôÓÚ´´½¨¸Ã¶ÔÏóµÄÓû§£¬¶ø²»ÊÇ   dbo¡£   
    
    
Óô´½¨¸Ã¶ÔÏóµÄÓû§ÃûÏÞ¶¨¡£


Ïà¹ØÎĵµ£º

SQL SERVER¿ì½Ý¼ü

                                                   ......

Win7Ï°²×°SQL Server2005

ÔÚWin7Ï°²×°SQL2005¿ª·¢°æ£¬°²×°SQL Native ClientʱÌáʾ°²×°Öжϣ¬Ã»ÓÐÔÚÒ⣬ȻºóÔÚ°²×°SQL ServerʱÓÖÌáʾ“[Microsoft][SQL Native Client]¿Í»§¶Ë²»Ö§³Ö¼ÓÃÜ.SQL Server °²×°³ÌÐòÎÞ·¨Á¬½Óµ½Êý¾Ý¿â·þÎñ½øÐзþÎñÆ÷ÅäÖÃ.”жÔØSQL Native ClientÖØа²×°£¬»¹ÊÇÖжϣ¬ÐÞ¸´£¬Ò²Öжϣ¬ÔÙжÔØ£¬ÇåÀí×¢²á±í£¬ÖØ× ......

¸÷ÖÖÊý¾Ý¿âsqlÓï¾äÈ¡±íÖÐn mÌõÊý¾Ý

ÃüÌ⣺д³öÒ»ÌõSqlÓï¾ä£º È¡³ö±íAÖеÚ31µ½µÚ40¼Ç¼£¨×Ô¶¯Ôö³¤µÄID×÷ΪÖ÷¼ü,  ×¢Ò⣺ID¿ÉÄܲ»ÊÇÁ¬ÐøµÄ¡££©
oracleÊý¾Ý¿âÖУº
1¡¢select * from A where rownum<=40 minus select * from A where rownum<=30
sqlserverÊý¾Ý¿âÖУº
1¡¢select top 10 * from A where id not in (select top 30 id from A )
2¡¢s ......

Ҳ̸SQL¸÷ÖÖÁ¬½Ó£¨JOIN£©

×î½ü¹«Ë¾ÔÚÕÐÈË£¬Í¬ÊÂÎÊÁ˼¸¸ö×ÔÈÏΪÊý¾Ý¿â¿ÉÒÔµÄӦƸÕß¹ØÓÚ¿âÁ¬½ÓµÄÎÊÌ⣬»Ø´ð²»¾¡ÀíÏë¡«
ÏÖÔÚÔÚÕâдд¹ØÓÚËüÃǵÄ×÷ÓÃ
¼ÙÉèÓÐÈçÏÂ±í£º
Ò»¸öΪͶƱÖ÷±í£¬Ò»¸öΪͶƱÕßÐÅÏ¢±í¡«¼Ç¼ͶƱÈËIP¼°¶ÔӦͶƱÀàÐÍ£¬×óÓÒÁ¬½Óʵ¼Ê˵ÊÇÎÒÃÇÁªºÏ²éѯµÄ½á¹ûÒÔÄĸö±íΪ׼¡«
1£ºÈçÓÒ½ÓÁ¬ right join »ò right outer join£º
ÎÒÃÇÒÔÓÒ±ß ......

¾­µäsqlÓï¾ä£¬ÊµÏÖÁËÐ޸ģ¬Ôö¼Ó£¬É¾³ý£¬Åжϱí×Ö¶Î

create database test1
use test1
create table admin
(
   id int primary key ,
   name varchar(50),
   pwd  varchar(50),
)
insert into admin values(1,'aa','aa')
alter  table   admin   add   tel  varchar(50)   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ