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

sql server 2000 ÖеÄÊý¾ÝÀàÐÍ

declare @tmp_table table(tempvalue varchar(100) null)
insert into @tmp_table
select optname from dbo.MSreplication_options
select * from @tmp_table
alter table testTable
(
   decimal_field decimal null,
   datetime_field datetime null,
   money_field money null,
   numeric_field numeric null,
   binary_field binary null,
   sql_variant_field sql_variant null
  
)
alter table testTable
alter column decimal_field decimal(4,2)
insert into testTable(decimal_field) values(99.999)
insert into testTable(datetime_field) values('12/07/1998')
insert into testTable(datetime_field) values('12/07/1998')
insert into testTable(datetime_field) values(12/07/1998)
insert into testTable(datetime_field) values(12/07/1998)
insert into testTable(money_field) values(99999999999999.12345)
insert into testTable(money_field) values($999999.12345)
insert into testTable(money_field) values(cast('$999,999.12345' as money))
insert into testTable(binary_field) values(0xe)
insert into testTable (sql_variant_field) values('0xe')
insert into testTable (sql_variant_field) values(0xe)
insert into testTable (sql_variant_field) values(123)
insert into testTable (sql_variant_field) values(1234567.123)
select * from testTable
delete from testTable
create table Êý×ÖÊý¾Ý
(
  decimal_number decimal(8,6),
  numeric_number numeric(5,3)
)
insert into Êý×ÖÊý¾Ý
values(99.99999788,50)
insert into Êý×ÖÊý¾Ý
values(99.999999,300)


Ïà¹ØÎĵµ£º

SQL2005ºÍ(Excel |access)Ö®¼äµÄÊý¾Ýµ¼Èëµ¼³ö


Sql´úÂë
--²ÉÓÃSQLÓï¾äʵÏÖsql2005ºÍExcel Êý¾ÝÖ®¼äµÄÊý¾Ýµ¼Èëµ¼³ö£¬ÔÚÍøÉÏÕÒÀ´Ò»--Ï£¬ÊµÏÖ·½·¨ÊÇÕâÑùµÄ£º    
  
  
--Excel---->SQL2005  µ¼È룺    
  
  
select * into useinfo from O ......

½â¾öSQL ServerתACCESS×Ô¶¯±àºÅÎÊÌâ


1.´ò¿ªSQL server enterprise mananger “ÆóÒµ¹ÜÀíÆ÷”
ÔÚÄãÒªµ¼³öµÄSQLÊý¾Ý¿âÉÏÊó±êÓÒ¼ü²Ëµ¥£ºËùÓÐÈÎÎñ-¡·µ¼³öÊý¾Ý
2.»Ø³öÏÖÒ»¸öµ¼³öÏòµ¼´°¿Ú¡£
Ñ¡Ôñ±»µ¼³öµÄÊý¾ÝÔ´£¬ÎªÄã¸Õ²ÅËùÑ¡ÔñµÄÊý¾Ý¿â£¬Èç¹û·¢ÏÖ²»¶ÔÓ¦×ÔÐÐÐ޸ġ£
3.½øÈëµ¼³öµ½Ä¿±êÊý¾ÝÔ´µÄÑ¡Ôñ£¬ÕâÀïÎÒÃÇҪת³ÉACCESSµÄÊý¾Ý¿â¡£×¢ÒâÑ¡ÔñÊý¾ÝÔ´ÀàÐÍÎ ......

SQLÍêÈ«¼òÃ÷ÊÖ²á


¹ØÓÚÎÒÃÇ | ¼ÓÈëÎÒÃÇ | ÍøÕ¾½á¹¹ | ½»»»Á¬½Ó | ÁªÏµÎÒÃÇ
Ê×Ò³
¼¼ÊõÎÄÕª
°²È«Â©¶´
²ËÄñÀÖÔ°
ºÚ¿Í½ø½×
×ÊÁÏÎÄ¿â
Ô­´´×÷Æ·
Èí¼þÏÂÔØ
¼¼ÊõÂÛ̳
SQLÍêÈ«¼òÃ÷ÊÖ²á
תÌû
SQLÊÇStructured Quevy Language(½á¹¹»¯²éѯÓïÑÔ)µÄËõд¡£SQLÊÇרΪÊý¾Ý¿â¶ø½¨Á¢
µÄ²Ù×÷ÃüÁ£¬ÊÇÒ»ÖÖ¹¦ÄÜÆëÈ«µÄÊý¾Ý¿âÓïÑÔ¡£ÔÚÊ¹Ó ......

ÎÒÔÚ±±´óÇàÄñËùѧSQL֪ʶµÄС»ã×Ü

´´½¨Ò»¸öÊý¾Ý¿â£¨¿âÃû£ºÑ§Éú¿â£©²¢ÉèÖÃÁ½¸öÊý¾ÝÎļþºÍÁ½¸öÈÕÖ¾Îļþ
create database ѧÉú¿â
on primary
( name=ѧÉú_data1, filename='e:\ѧÉú_data1.mdf', size=1mb, maxsize=3mb,filegrowth=1mb ),
( name=ѧÉú_data2, filename='e:\ѧÉú_data2.ndf', size=1mb, maxsize=3mb, filegrowth=10% )
log on
( name=ѧÉú_ ......

sql¸ù¾Ý»ù±íÅúÁ¿ÐÞ¸Ä×Ó±í

update ×Ó±íÃû 
set ÒªÐ޸ĵÄ×Ó±í×Ö¶Î=b.»ù±íÖÐÒªÌí¼Óµ½×Ó±íÖеÄ×Ö¶Î
from ×Ó±íÃû,(select ×Ó±íÃû.ÒªÐ޸ĵÄ×Ó±í×Ö¶Î,»ù±íÃû.Òª²Î¼Ó±È½ÏµÄ×Ö¶Î from ×Ó±íÃû,»ù±íÃû where »ù±íÃû.Òª²Î¼Ó±È½ÏµÄ×Ö¶Î=×Ó±íÃû.×Ó±íÖÐÒª²Î¼Ó±È½ÏµÄ×Ö¶Î)as b
where b.»ù±íÖÐÒª²Î¼Ó±È½ÏµÄ×Ö¶Î=×Ó±íÒª²Î¼Ó±È½ÏµÄ×Ö¶Î
Èç
update Ä£°å ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ