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

ÓÃADO¹ÜÀíSQL SERVER £¡

      ÔÚÈí¼þ¿ª·¢ÖУ¬³£³£ÐèҪΪ³ÌÐò½¨Á¢Sql ServerÊý¾Ý¿âµÄÔËÐл·¾³¡£Íê³ÉÈçÔÚSQL ServerÊý¾Ý¿âÖн¨Á¢É豸£¬½¨Á¢Êý¾Ý¿â£¬½¨Á¢±í¸ñ£¬·ÖÅäȨÏ޵ȹ¦ÄÜ£¬ÈçºÎ·½±ãµÄ½¨Á¢Ó¦ÓóÌÐòËùÐèSql Server»·¾³µÄÊý¾Ý¿â»·¾³£¬¶ø²»ÓÃÆô¶¯SQL Enterprise ManagerÄØ£¿
ÏÂÃæÀ´¿´£º 
¡¡¡¡Æô¶¯VB6.0£¬Ð½¨Ò»¸ö¹¤³Ì,Ôڲ˵¥-¹¤³Ì-ÒýÓÃÀïÑ¡"Microsoft ActiveX Data Objects 2.0 Library",´úÂëÀïÐèÒªÓÐ
dim conn As New ADODB.Connection ‘¶¨ÒåADOÊý¾Ý¿â¶ÔÏó
conn.ConnectionString = "driver={SQL Server};" & "server=" & ServerName & ";uid=" & UserName & ";
pwd=" & Password & ";database=" & DatabaseName & "" ’Á¬½ÓÊý¾Ý´®
conn.open ‘Á¬½ÓÊý¾Ý¿â
¡¡¡¡ ×¢£ºServerNameΪ·þÎñÆ÷Ãû£»UserNameΪÓû§Ãû£»PasswordΪÓû§¿ÚÁ DatabaseNameÒªµÇ¼µÄÊý¾Ý¿âÃû£¬¿ÉÒÔΪ¿Õ¡£
¡¡¡¡ ºËÐÄ´úÂëÈçÏ£º
Ò»¡¢½¨Á¢Êý¾Ý¿â
¡¡¡¡ Ô­Àí£º½¨Á¢Êý¾Ý¿âÏÈÒª³õʼ»¯Ò»¸öÊý¾Ý¿âÉ豸£¬È»ºóÔÚ´ËÉ豸ÉϽ¨Á¢Êý¾Ý¿â¡£ËùÓеÄÉ豸ÃûÔÚϵͳ±í"sysdevices"ÀïÓмǼ£¬ËùÓеÄÊý¾Ý¿âÃûÔÚϵͳ±í"sysdatabases"ÀïÓмǼ¡£ÔÚ½¨Á¢Ö®Ç°£¬×îºÃÏȲéѯÕâÁ½¸öϵͳ±í£¬¿´Ãû³ÆÊÇ·ñÒѾ­´æÔÚ¡£ÔÚ½¨Á¢É豸֮ǰ£¬»¹ÐèÒªµÄÒ»¸öÎïÀíÃûºÍ¿ÕÏеÄÉ豸±êʶºÅ¡£
³õʼ»¯É豸Óï·¨£º
DISK INIT NAME="device_name",PHYNAME="physical_name",VDEVNO=device_number,SIZE=numberofblock
¡¡¡¡ ˵Ã÷£ºÕâÀNAMEÊÇÊý¾Ý¿âÉ豸Ãû£¨Ò»¸öÓÐЧµÄ±êʶ·û£©£¬PHYNAME(Êý¾Ý¿âÉ豸µÄÎïÀíÃû)ÊÇԭʼµÄ´ÅÅÌ·ÖÇøUNIX»òÍâÉ裨vms£©Ãû£¬»òÕßÊDzÙ×÷ϵͳµÄÎļþÃû¡£VDEVNOʱÊý¾Ý¿âµÄÉ豸±êʶºÅ£¬ºÏ·¨ÖµÎª1-255£¬SIZEµÄµ¥Î»ÊÇ2KBµÄ¿é£¬ÀýÈç1MB£¨1024KB£©Ê±SIZEֵΪ512¡£
¡¡¡¡ ½¨Á¢Êý¾Ý¿âÓï·¨£ºCREATE DATABASE database_name [ON database_device]
¡¡¡¡ ˵Ã÷£ºdatabase_nameÊÇÒª½¨µÄÊý¾Ý¿âÃû£¬database_deviceÊÇÉ豸Ãû
¡¡¡¡ Ҫн¨Á¢Ò»¸öÊý¾Ý¿â£¬¾ÍÐèÒªÉ豸Ãû£¬Êý¾Ý¿âÃû£¬ÎïÀíÃûºÍÉ豸ºÅ¡£¾ßÌå²½ÖèÈçÏ£º
¡¡¡¡ ÎÒÃǼÙÉèÓû§ÒªÐ½¨Á¢É豸dbName£¬ÔÚÉ豸dbNameÉϽ¨Á¢Êý¾Ý¿âdbName¡£
¡¡¡¡ 1£©µÃµ½É豸Ãû bNameÊÇÓû§¸ø³öµÄÉ豸Ãû£»ÏȲéѯϵͳ±ísysdevices£¬¿´Óû§¸ø³öµÄÉ豸ÃûdbNameÊÇ·ñÒѾ­´æÔÚ£¬Èç¹û´ËÉ豸Ãû´æÔÚ£¬¾ÍÐèÒª¸ü»»Ò»¸öÉ豸Ãû£¬ÒòΪÉ豸ÃûÊÇΨһµÄ¡£
sql = "select * from sysdevices
where name=" & dbName & ""
Set rs =


Ïà¹ØÎĵµ£º

½âÎöMicrosoft Sql ServerÖеÄlikeÓï¾ä


 
 
ʹÓà LIKE µÄģʽƥÅä
 
µ±ËÑË÷ datetime ֵʱ£¬ÍƼöʹÓà LIKE£¬ÒòΪ datetime Ïî¿ÉÄÜ°üº¬¸÷ÖÖÈÕÆÚ²¿·Ö¡£ÀýÈ磬Èç¹û½«Öµ 19981231 9:20 ²åÈëµ½ÃûΪ arrival_time µÄÁÐÖУ¬Ôò×Ó¾ä WHERE arrival_time = 9:20 ½«ÎÞ·¨ÕÒµ½ 9:20 ×Ö·û´®µÄ¾«È·Æ¥Å䣬ÒòΪ SQL Server ½«Æäת»»Îª 1900 Äê 1 Ô 1 ÈÕÉÏÎ ......

SQLÒªÇóCDKEYµÄ½â¾ö°ì·¨

 
[¿ÉÓÃ]Èç¹û³öÏÖ°²×°sql server 2000ÒªÇóCD-KEYµÄÇé¿ö,ÇëʹÓÃregedt32ÕÒ¿ª×¢²á±í,ÔÚÒÔÏÂÖ÷¼ü[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager]Öн¨Á¢Ò»¸öDWORD¼ü
SafeDLLSearchMode²¢ÉèֵΪ0
Õâ¸öÊÔ¹ý£¬ÊÇ¿ÉÒÔÓõÄ
 
H6TWQ-TQQM8-HXJYG-D69F7-R84VM      - ......

OracleÓëSQL ServerÊý¾Ý»¥ÓÃÐÔ£¨3£©

 ×÷Õß Haidong Ji  ·­Òë GoodKid
ÔÚÎҵĹØÓÚOracleºÍSQL Server »¥ÓÃÐÔµÄϵÁÐÎÄÕ part 1 ºÍ part 2 µ±ÖУ¬ÎÒÌÖÂÛÁËOracleºÍSQL Server µÄһЩ²»Í¬µãµÄ»°ÌâÒÔ¼°OracleÇý¶¯µÄ¿ÉÑ¡ÐÔ¡£ÔÚ±¾Ö÷ÌâÖУ¬ÎÒ½«ÌÖÂÛÒ»¸öÀ´×ÔOracle 10gµÄй¤¾ß£¬Oracle¼´Ê±¿Í»§¶Ë¡£
¶ÔÓÚOracle 10gÒÔÇ°µÄ°æ±¾£¬Èç¹ûÏ뽨Á¢ºÍOracleµÄÁ¬½Ó£¬ ......

OracleÓëSQL ServerÊý¾Ý»¥Ò×ÐÔ£¨1£©

×÷Õß Haidong Ji ·­Òë GoodKid
ÎÒÃǵ±ÖеĴ󲿷ÖÈ˹¤×÷ÔÚÒ»¸öµ¥Ò»µÄ RDBMS ϵͳÖУ¬Èç MSSQL, Oracle, or IBM DB2¡£È»¶ø£¬ÎÒÃÇÈÕÒæ¸Ð¾õµ½£¬ÎÒÃÇÕý´¦ÓÚ²»Í¬µÄÊý¾Ý¿â»·¾³µ±Öв¢ÇÒÐèÒª½â¾öÊý¾ÝµÄ»¥ÓÃÐÔÎÊÌâ¡£
¾¡¹ÜÖ÷ÒªµÄ RDBMS ³§ÉÌÊÔͼȥ×ñÑ­¹ØϵÊý¾Ý¿âÄ£ÐÍÔ­Àí£¬²¢ÇÒÓ÷dz£Ð¡µÄ²îÒìȥʵÏÖËüÃÇ¡£ÁíÍ⣬¼¸ºõÖ÷ÒªµÄ ......

sqlÓï¾ä²éѯ½á¹ûºÏ²¢union allÓ÷¨_Êý¾Ý¿â¼¼ÇÉ

--ºÏ²¢Öظ´ÐÐ
select * from A
union
select * from B
--²»ºÏ²¢Öظ´ÐÐ
select * from A
union all
select * from B
°´Ä³¸ö×Ö¶ÎÅÅÐò
--ºÏ²¢Öظ´ÐÐ
select *
from (
select * from A
union
select * from B) AS T
order by ×Ö¶ÎÃû
--²»ºÏ²¢Öظ´ÐÐ
select *
from (
select * from A
union all
select * ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ