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

ÔÚsql serverÖÐÊäÈë'NULL'×Ö·û´®µÄÓÐȤ·¢ÏÖ£¡

Èçͼ1¡¢2£¬id=1µÄÊý¾ÝÊÇNULL£¬ÆäËûµÄΪ·ÇNULLµÄÊý¾Ý¡£
Ò»°ãÇé¿öÏ£¬»áÓÃÁ½ÖÖ·½·¨£¡
·½·¨1.t-sql£ºinsert into E values(1,'NULL')£¬²åÈëºó£¬ÔÚ´ò¿ª±íµÄÇé¿öÏ¿´µ½µÄ
ÊÇ'NULL'£¨ÎÒÏëÊÇΪÁËÇø·ÖNULL£¬²Å¼ÓµÄÒýºÅ£©£¬µ«ÊDzéѯµÄʱºò²»Ó°Ï죬ÏÔʾµÄÊÇNULL£¬
Èçͼ1¡¢2£¬idΪ6µÄÊý¾Ý¡£
Èç¹ûÒª²åÈë´øµ¥ÒýºÅµÄ'NULL'£¬insert into E values(1,'''NULL''')£¬ÔÚ´ò¿ª±íµÄÇé¿öÏ¿´µ½
µÄÊÇ'NULL'£¬²éѯµÄʱºò£¬ÏÔʾµÄÒ²ÊÇ'NULL'£¬Èçͼ1¡¢2£¬idΪ7µÄÊý¾Ý¡£
ÉÏÊö2ÖÖÇé¿ö£¬ÔÚ´ò¿ª±íµÄʱºò£¬ÏÔʾµÄÊÇÒ»ÑùµÄ£¡
·½·¨2.´ò¿ª±í£¬ÊÖ¶¯Ìí¼Ó£¬ÕâÀï»áÓöµ½ÎÊÌ⣬Èç¹ûÊäÈëNULL£¬Ôò»á·¢ÏÖ×Ô¶¯±ä³ÉбÌ壨±íʾ
²åÈëÁËNULL£¬¶ø²»ÊÇ'NULL'£¬id=1µÄÊý¾Ý£©£¬Èç¹ûÌí¼Ónull¡¢NULL1¡¢NullÀ×ͬµÄ¶¼ÊÇ¿ÉÒÔ
µÄÕý³£µÄ¡£id=5µÄÊý¾ÝÊǶàÌí¼ÓÁËÒ»¸ö¿Õ¸ñ¡£
´ËÍ⣬»¹·¢ÏÖ£¬Èç¹û¸ü¸Äid=7µÄÊý¾Ý£¬½«µ¥ÒýºÅÈ¥µô£¬¾Í»á±ä³ÉNULL£¬Èç¹û
ÔÙ½«µ¥ÒýºÅÌí¼ÓÉÏ£¬´ò¿ª±íµÄÇé¿öÊÇ'NULL'£¬µ«ÊDzéѯ³öÀ´¾Í±ä³ÉºÍid=6Ò»Ñù£¬±ä³ÉÁËNULL¡£
Õâʱ£¬³ýÁËÓÃt-sql¸ÄµÄ»°£¬MSÊÖ¶¯Ã»·¨Ð޸ijÉ'NULL'¡£
ͼ1£º´ò¿ª±íµÄÇé¿ö(Open Table)
ͼ2£º²éѯ±íµÄÇé¿ö£¨select * from E£©


Ïà¹ØÎĵµ£º

SQL Server2000 ½âÎöXML

DECLARE @HDOC INT --Îĵµ¾ä±ú
DECLARE @XMLSTRING VARCHAR(200) --XML×Ö·û´®
SET @xmlString ='<?xml version="1.0"?>
<ROOT>
<USER ID="1" Name="SBQCEL"/>
<USER ID="2" Name="PEACELI"/>
<USER ID="3" Name="SHEEPCHANG"/>
</ROOT>'
--ʹÓÃϵͳ´æ´¢ ......

mysqlÊý¾Ý¿âsqlÎļþµ¼Èëµ¼³öÃüÁî

¡¡¡¡1.µ¼³öÕû¸öÊý¾Ý¿â
¡¡¡¡       mysqldump -u Óû§Ãû -p Êý¾Ý¿âÃû > µ¼³öµÄÎļþÃû
¡¡¡¡       mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql
¡¡¡¡2.µ¼³öÒ»¸ö±í
¡¡¡¡      mysqldump -u Óû§Ãû -p Êý¾Ý¿âÃû ±íÃû> ......

Sql Server Á¬½ÓOracle µÄMSDTCÉèÖÃ

´ò¿ª“¹ÜÀí¹¤¾ß¨D¨D×é¼þ·þÎñ”£¬ÒÔ´Ë´ò¿ª“×é¼þ·þÎñ¨D¨D¼ÆËã»ú”£¬ÔÚ“ÎҵĵçÄÔ”Éϵã»÷ÓÒ¼ü¡£
ÔÚMSDTCÑ¡ÏÖУ¬µã»÷“°²È«ÅäÖÔ°´Å¥¡£
ÔÚ°²È«ÅäÖô°¿ÚÖÐ×öÈçÏÂÉèÖãº
 Ñ¡ÖГÍøÂçDTC·ÃÎÊ”
 ÔÚ¿Í»§¶Ë¹ÜÀíÖÐÑ¡ÖГÔÊÐíÔ¶³Ì¿Í»§¶Ë”“ÔÊÐ ......

SQL Server 2005 ´´½¨µ½ Oracle10g µÄÁ´½Ó·þÎñÆ÷

SQL Server 2005 ´´½¨µ½ Oracle10g µÄÁ´½Ó·þÎñÆ÷
ÓÉ lwgboy @ MoFun.CC, ÔÚ 08-9-12 ÏÂÎç5:00
±ê¼Ç: linkserver, oracle, sqlserver, Á´½Ó·þÎñÆ÷
SQL Server 2005 ´´½¨µ½ Oracle10g µÄÁ´½Ó·þÎñÆ÷
SQL Server 2005 ÒìÀàÊý¾ÝÔ´(ORACLE10G)Á´½Ó·þÎñÆ÷µÄ½¨Á¢
±¾ÎļòÊöSqlServer 2005 Á´½Óµ½ Oracle10g ·þÎñÆ÷µÄ¹ý³Ì¼°»ù ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ