Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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



¿ÉÒÔŶ


Ïà¹ØÎÊ´ð£º

oracle 9i ×î½ü·¢Ïֵǽ±¨´í - Oracle / »ù´¡ºÍ¹ÜÀí

ÓÃPL/SQL µÇ½ʱµ¯³ö±¨´í´°¿Ú£¬´íÎóÈçÏ£¡
  ORA-01034:ORACLE not available
  ORA-27101:shared memory realm does not exist
ÇëÎÊ£¬ÓÐûÓÐÈËÓöµ½ÕâÖÖÇé¿ö£¬Ôõô½â¾ö£¿Ð»Ð»£¡

1. Oracle sid ÕýÈ ......

ÇóÒ»SQL - MS-SQL Server / »ù´¡Àà

tab1 ×Ö¶Î:billdate,goodsid,incount,inmoney,outcount,outmoney,endprice,endcount,endamt
tab2 ×Ö¶Î:goodsid,goodskind£¨ÉÌÆ·ÀàÐÍ£©
tab3 ×Ö¶Î:goodskind£¨ÉÌÆ·ÀàÐÍ£©,kindname
½á¹û£º
µÃµ½ÉÌÆ·ÀàÐÍÔÚÒ»¶Îʱ¼ä ......

·ÖÏí×Ô¼ºµÄOracleÅäÖùý³Ì - Oracle / »ù´¡ºÍ¹ÜÀí

ллÌÆÈËÀÏ´óµÄÖ¸µã£¬Ð»Ð»¸÷λ¸ßÊÖµÄÖ¸µã£¡
°²×°10g Enterprise¡£ÉÏÍøÏÂÁËMLDNµÄOracleÊÓƵ£¬¸ú×ÅÊÓƵÉϵÄÅäÖÃ×ߣ¬°²×°³É¹¦ÁË£¬µ«ÊÇûÍêÕûµØÅäÖá£
µã»÷½øÈ룺Database Configuration Assistant
1. ´´½¨Êý¾Ý¿â£» ......

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Óï¾äORµÄÎÊÌâ - Oracle / ¸ß¼¶¼¼Êõ

ͨ¹ýNAME×Ö¶ÎÌõ¼þ²éѯһ¸öÊý¾Ý±í£¬¼ÙÉèÎÒÓÐ100¸öÐÕÃû£¬ÓÐÒÔÏÂÁ½¸ö·½·¨£¬
·½·¨1£º
°Ñ100¸öName ×é³ÉÒ»¸öSQLÓï¾ä£¬±ÈÈç Select * from tmp_table where Name='ÕÅÈý' or Name ='ÀîËÄ' Or ...Or Name='µÚÒ»°Ù¸öÐÕÃû'
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ