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

°ïæдÌõsql - Oracle / ¿ª·¢

tableÓÐÁ½¸ö×Ö¶Îcode¡¢name
--------------------------
---code--------------name----------
--10000--------------СÕÅ----------
--20000------------СÀî,С³Â-------
--30000-----------СÍõ,СÖÜ,СÃ×---

code×Ö¶ÎÊÇÊý×Ö£¬name×Ö¶ÎÊÇÃû×Ö£¬ÓпÉÄÜÊÇÒ»¸ö»ò¶à¸ö£¬¶à¸öµÄʱºòÓöººÅ·Ö¸ô¡£
ÏÖÔÚÒªµÄ²éѯ½á¹ûÊÇ£ºÈç¹ûnameÓжà¸öµÄ»°£¬·Ö³É¶àÌõ¼Ç¼¡£
±ÈÈç°´ÉÏÃæµÄÊý¾Ý£¬½á¹û¾ÍÊÇ£º
10000---СÕÅ
20000---СÀî
20000---С³Â
30000---СÍõ
30000---СÖÜ
30000---СÃ×
²é³öÕâÑùµÄÁùÌõÊý¾ÝÀ´£¬sql¸ÃÔõôдÄØ£¬Êý¾Ý¿âÊÇoracle



ÓÖÊDzð·Ö ×ֶΠ¡£¡£¡£ 
ÄÇÌìÏë×Åд¸öº¯Êý

ÓÐÕв»

¸ø¸ö˼·£º×Ô¼ºÔÚµ÷ÕûÒ»ÏÂ
SQL code:

WITH n AS (SELECT '30000' AS a,',СÍõ,СÖÜ,СÃ×,' b from dual
)
SELECT a,SUBSTR(b, SP, EP - SP) STR
from (SELECT a,
b,
INSTR(b, ',', 1, ROWNUM) + 1 SP,
INSTR(b, ',', 1, ROWNUM + 1) EP
from n
CONNECT BY ROWNUM < 100)
WHERE EP > 0



¿ÉÒÔŶ


Ïà¹ØÎÊ´ð£º

csvÎļþת»»³Ésqlµ¼Èëµ½Êý¾Ý¿â£¬Ã»ÓÐÊý¾ÝΪºÎ£¿

Ö´ÐеÄ˳Ðò£º
1£©Îļþä¯ÀÀ¿ò£¨Ñ¡ÔñÎļþʹÓã©
Ñ¡ÔñºÃÎļþºó
µã»÷Ò»¸öµ¼Èë°´Å¥µÄʱºò £¬°ÑÉÏÃæÉÏ´«¿òÀïµÄcsvÎļþÒÔÒ»¸öIDΪÎļþÃû£¬ÉÏ´«µ½**/**Îļþ¼ÐÏÂ
2£©¶ÁÈ¡Õâ¸öÎļþ¼ÐϵÄcsvµÄÎļþ£¬×ª»»³Ésql
3 ......

ÇóÒ»sqlÓï¾ä - MS-SQL Server / ÒÉÄÑÎÊÌâ

ÏÖÔÚÓÐÁ½ÕÅ±í£ºÎÄÕÂÖ÷±íA(articleId,articleTitle)£¬ÎÄÕÂÆÀÂÛ±íB(commentId,articleId,commentTitle)
ÏÖÔÚÎÒÏëʵÏÖÕâÑùµÄ¹¦ÄÜ£ºÁгöÎÄÕÂÁÐ±í£¬ÆäÖÐÿƪÎÄÕ±êÌâÏÂÃæÁгö´ËÎÄÕµÄÇ°2¸öÎÄÕÂÆÀÂÛ£¬ÇëÎÊsqlÓï¾äÔõôд°¡ ......

sql ÎÊÌâ - MS-SQL Server / »ù´¡Àà

ÐèÇóÈçÏ£º
ѧԺ academy£¨aid,aname£©
°à¼¶ class£¨cid,cname,aid£©
ѧÉú stu(sid,sname,aid,cid)
סËÞÇø region(rid,rname)
ËÞÉáÂ¥ build(bid,rid,bnote) bnoteÊÇ¡®ÄС¯/¡®Å®¡¯
ËÞÉá dorm(did,rid,bid£¬bedn ......

SQL·ÖÒ³ÓëOracle·ÖÒ³µÄÒÉÎÊ£¿ - Java / Web ¿ª·¢

ÕâÀïÏëÁ˽âÏ£¬¹ØÓÚSQL ServerÖзÖÒ³ºÍOracleÖзÖÒ³£»
ƽ³£Ð´Ó¦ÓóÌÐòµÄʱºò£¬±ÈÈçÓõÄÓïÑÔÊÇJava£¬ÓиöÁбíÒ³Ã棬ÐèÒª¶ÔÊý¾Ý·ÖÒ³ÏÔʾ£»
ÕâÀïÒª·ÖÒ³ÄѵÀ²»ÐèÒª½èÖúJava£¬¶øÖ±½ÓsqlÄÜÖªµÀ·ÖÒ³Âð£¬ÆðÂëÒ²Òª´«¸öÒ³Âë½ ......

Accessͨ¹ýSqlÓï¾ä´´½¨Êý¾Ý¿â - .NET¼¼Êõ / C#

ÔÚAccessµÄ²éѯÖÐÖ´ÐÐÏÂÃæµÄÓï¾ä,ÎÞЧ,ÌáʾÆÚ´ýselect ,updata ,...
CreateTble C=Answer N="»ØÌû±í"
(
  C=ID T="INTEGER" P=No M=No N="±àºÅ" Z=false,
  C=Ques ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ