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

SQL 2005ת»»³É2000 (SQL Server)


Ö±½Órestore»ò¸½¼ÓÓ¦¸ÃÊDz»ÐеÄ, Óýű¾+µ¼Êý¾Ý¿Ï¶¨Ã»ÓÐÎÊÌâ¡£
2005תµ½2000µÄ²½Öè
1. Éú³Éfor 2000°æ±¾µÄÊý¾Ý¿â½Å±¾
2005 µÄmanger studio
-- ´ò¿ª"¶ÔÏó×ÊÔ´¹ÜÀíÆ÷"(ûÓеĻ°°´F8), Á¬½Óµ½ÄãµÄʵÀý
-- ÓÒ¼üҪתµ½2000µÄ¿â
-- ÈÎÎñ
-- Éú³É½Å±¾
-- ÔÚ"½Å±¾Ïòµ¼"µÄ"Ñ¡ÔñÊý¾Ý¿â"ÖÐ, È·¶¨Ñ¡ÔñµÄÊÇҪתµ½2000µÄ¿â
-- ¹´Ñ¡"ΪËùÑ¡Êý¾Ý¿âÖеÄËùÓжÔÏó±àд½Å±¾"
-- ÔÚ½ÓÏÂÀ´µÄ"Ñ¡Ôñ½Å±¾Ñ¡Ïî"ÖÐ, ÕÒµ½"Ϊ·þÎñÆ÷°æ±¾±àд½Å±¾"Ïî, Ñ¡Ôñ"SQL Server 2000"
-- ÆäËûÑ¡Ïî¸ù¾ÝÐèÒªÉèÖÃ
-- ×îºó°Ñ½Å±¾±£´æµ½Ò»¸ö .sql ½Å±¾Îļþ
2. ÔÚ2000Öд´½¨Ä¿±êÊý¾Ý¿â
ÔÚ²éѯ·ÖÎöÆ÷(»ò2005µÄmanger studioÔÚ´ò¿ª½Å±¾Îļþ), Á¬½Óµ½SQL Server 2000,Ö´ÐÐÉÏÃæÉú³ÉµÄ½Å±¾.ÒÔ´´½¨Ò»¸öеÄÊý¾Ý¿â
3. ½«Êý¾Ý´Ó2005µ¼µ½2000
2005 µÄmanger studio
-- ´ò¿ª"¶ÔÏó×ÊÔ´¹ÜÀíÆ÷"(ûÓеĻ°°´F8), Á¬½Óµ½ÄãµÄʵÀý
-- ÓÒ¼üҪתµ½2000µÄ¿â
-- ÈÎÎñ
-- µ¼³öÊý¾Ý
-- ÔÚ"SQL Server µ¼ÈëºÍµ¼³öÏòµ¼"µÄ"Ñ¡ÔñÊý¾ÝÔ´"²½ÖèÖÐ, È·¶¨Ñ¡ÔñµÄÊÇÒªµ¼³öµÄÊý¾Ý¿â
-- ÔÚ"Ñ¡ÔñÄ¿±ê"²½ÖèÖÐ, Á¬½Óµ½ 2000, ²¢Ñ¡Ôñ²½Öè2н¨µÄ¿â
-- ÔÚ"Ñ¡ÔñÔ´±íºÍÔ´ÊÓͼ"ÖÐ, Ñ¡ÔñËùÓеıí
-- ×îºóÍê³É
˵Ã÷£º´Ó2005µ¼³öµÄSQLÓï¾äÖÐÓм¸¸öµØ·½ÐèÒªÐ޸ģº
1£ºÅжϱíÊÇ·ñ´æÔڵĵط½Òª¸Ä³É
select * from sysobjects where id=.....
2:ÅжÏÍâ¼üÊÇ·ñ´æÔÚÕâ¸öµØ·½×îºÃÈ¥µôËãÁË
3£ºsql 2005ÖÐÓÐ varchar(max)ÕâÑùµÄ¶«Î÷£¬¸Ä³Évarchar(1000)ʲôµÄ¾ÍÐÐÁË¡£


Ïà¹ØÎĵµ£º

SQL Êý¾Ý¿âÖ®Ò»

1.      SELECT
ʵÀý105
SELECT ID "±àºÅ",Name ÐÕÃû,
       Math_Score 'Êýѧ³É¼¨',  //ÔõôÓеÄÓÐAS,ÓеÄûÓÐ
       Music_Score AS ÒôÀֳɼ¨,
       English_Score AS Ó¢Îijɼ¨
f ......

SQLÊý¾Ý¿â

 CURSOR
==================================
l  SQL ÓαêCURSORµÄʹÓÃ
 
ʹÓÃÆðÀ´ºÜ¼òµ¥£¬Ïȶ¨Ò壬Ȼºó¸³¸öÖµ£¬´ò¿ª£¬Í¨¹ýWhile Loop Ò»¸öÒ»¸ö¶ÁÏÂÈ¥£¬×îºó¹Ø±Õ£¬ÊÍ·ÅÄÚ´æ¡£»ù±¾Ì×·ÈçÏ£º
DECLARE MyCursor cursor /* ÉùÃ÷Óα꣬ĬÈÏΪµ¥´¿ÏòÇ°µÄÓαꡣÈç¹ûÏëҪǰºóÌøÀ´ÌøÈ¥µÄ£¬Ð´³ÉScroll Cursor¼ ......

SQLÊý¾Ý¿â

1.      ´æ´¢¹ý³Ì(¶¨Òå&±àд)
l  ´´½¨´æ´¢¹ý³Ì
CREATE PROCEDURE storedproc1
AS
SELECT *
from tb_project
WHERE  Ô¤¼Æ¹¤ÆÚ<= 90
ORDER BY  Ô¤¼Æ¹¤ÆÚ DESC
GO
exec storedproc1
GO
 
l   Ð޸Ĵ洢¹ý³Ì
ALTER PROCEDURE storedproc1
AS
SEL ......

sqlÓï¾ä ½Øȡʱ¼ä Ö»ÏÔʾ Ä꣬Ô£¬Èյĸñʽ


Õª×Ôhttp://blog.sina.com.cn/zhm85
SQLÓï¾ä½Øȡʱ¼ä£¬Ö»ÏÔʾÄêÔÂÈÕ£¨2004-09-12£©
select CONVERT(varchar, getdate(), 120 )
‘getdate£¨£©’¸ÄΪʱ¼ä×Ö¶ÎÃû‘createtime’
ÔÙÖØÃüÃûмÓÁУ¨Select Name AS UName from Users£©
ÀýÈç select convert(varchar(11),createtime,120) as Ndate fro ......

phpmyadmin ÐÞ¸ÄÖ´ÐÐsqlÎļþ´óСÏÞÖÆ

phpmyadmin ÐÞ¸ÄÖ´ÐÐsqlÎļþ´óСÏÞÖÆ
´ò¿ªphp.ini
post_max_size = 100M       ; ±íµ¥Ìá½»Îļþ´óСÉÏÏÞ
memory_limit = 128M    ; ÄÚ´æÉÏÏÞ
upload_max_filesize = 100M ; ÉÏ´«Îļþ´óСÉÏÏÞ
ÐÞ¸ÄÒÔÉÏÈýÏ¾Í¿ÉÒÔ½â¾ö¡£ µ«ÊÇ´ËʱPHPMYADMINÖÐ×î´óÏÞÖÆ£º22,528 KB£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ