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

ÓÃsqlÓï¾äʵÏÖÑôÀúÓëÅ©Àúת»»

 £±.½¨Ò»ÕÅ±í¡¡´æ·ÅÊý¾Ý¡¡ÔÚÏÂÃæ£Ó£Ñ£Ìº¯ÊýÖÐÓÐÓõ½
create  table  solardata  
(  
       yearid  int  not  null,  
       data  char(7)  not  null,  
       dataint  int  not  null  
)  
 
--²åÈëÊý¾Ý 
insert  into    
solardata  select  1900,'0x04bd8',19416  union  all  select 1901,'0x04ae0',19168  
union  all  select  1902,'0x0a570',42352  union  all  select 1903,'0x054d5',21717  
union  all  select  1904,'0x0d260',53856  union  all  select  1905,'0x0d950',55632  
union  all  select  1906,'0x16554',91476  union  all  select  1907,'0x056a0',22176  
union  all  select  1908,'0x09ad0',39632  union  all  select  1909,'0x055d2',21970  
union  all  select  1910,'0x04ae0',19168  union  all  select  1911,'0x0a5b6',42422  
union  all  select  1912,'0x0a4d0',42192  union  all  select  1913,'0x0d250',53840  
union  all  select  1914,'0x1d255',119381  union  all  select  1915,'0x0b540',46400  
union  all  select  1916,'0x0d6a0',54944  union  all  select  1917,'0x0ada2',44450  
union  all  select  1918,'0x095b0',38320  union  all  select  1919,'0x14977',84343  
union  all  select  1920,'0x04970',18800  union  all  select  1921,'0x0a4b0',42160  
union  all  select  1922,'0x0b4b5',46261  union  all  s


Ïà¹ØÎĵµ£º

SQL plus³£ÓÃÃüÁî

1.µÇ½ϵͳÓû§
sqlplus È»ºóÊäÈëϵͳÓû§ÃûºÍÃÜÂë
µÇ½±ðµÄÓû§
conn Óû§Ãû/ÃÜÂë;
2.´´½¨±í¿Õ¼ä
create tablespace ¿Õ¼äÃû
datafile 'c:"¿Õ¼äÃû' size 15M --±í¿Õ¼äµÄ´æ·Å·¾¶,³õʼֵΪ15M
autoExtend on next 10M --¿Õ¼äµÄ×Ô¶¯Ôö³¤µÄÖµÊÇ10M
permanent online; --ÓÀ¾ÃʹÓÃ
3.´´½¨Óû§
create user s ......

SQL Server 2000/2005 ·ÖÒ³SQL

SQL ServerÖм¸ÖÖ·ÖÒ³µÄsqlÓï¾ä
·½·¨1£º
ÊÊÓÃÓÚ SQL Server 2000/2005
SELECT TOP Ò³´óС *
from table1
WHERE id NOT IN
          (
          SELECT TOP Ò ......

SQL Server ²éѯһÕűíµÄÖ÷¼ü

SQL Server ²éѯһÕűíµÄÖ÷¼ü
http://hi.baidu.com/samxx8/blog/item/7048f8de1725835894ee37b4.html
SELECT a.name
from   syscolumns a
inner join sysobjects d on a.id=d.id       
where d.name='SPF_Users' and exists(SELECT 1 from sysobjects where xtype=' ......

SQL Server²éѯһÕűíµÄËùÓÐ×Ö¶Î

SQL Server²éѯһÕűíµÄËùÓÐ×ֶΣº
http://hi.baidu.com/samxx8/blog/item/7048f8de1725835894ee37b4.html
SELECT c.name,o.name from syscolumns AS c
INNER JOIN sysobjects AS o
ON c.id = o.id where o.name='SPF_Users' ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ