²éѯÓÐ3ÃÅÒÔÉÏ£¨°üÀ¨3ÃÅ£©¿Î³ÌÊÇ90·ÖÒÔÉÏ£¨°üÀ¨90£©µÄѧÉúѧºÅ¼°¿Î³ÌÊý ÀýÈ磺
ѧºÅ ÐÕÃû ¿Î³ÌÃû³Æ ¿Î³Ì³É¼¨
1 ÕÅÈý ÓïÎÄ 80
2 ÀîËÄ Êýѧ 90
3 ÍõÎå Ó¢Óï 90
д³ösqlÓï¾ä¼´¿É
select ѧºÅ,count(*) from
(select ѧºÅ,¿Î³ÌÃû³Æ from table_name
&nb ......
Á½ÕÅÏàͬµÄÊý¾Ý±í£¨½á¹¹Ïàͬ£©A±í¡¢B±í
ÎÒ´Ó±íAÖвéѯµ½µÄÊý¾Ý±£´æµ½Ò»¸öDataset ÀȻºó°ÑDatasetÀïÃæµÄÊý¾ÝÈ«²¿Ìí¼Óµ½BÀïÔõôʵÏÖ¡£
ÎÒÕâÑùʵÏÖÔõô´ÓA±í²éѯµ½µÄÊý¾ÝÌí¼Ó²»µ½BÀïÈ¥ÄØ£¿
DataSet dsExp = Query(conExp,sqlExp);ÕâÒ»²½Ã»ÎÊÌâÊý¾Ý¿ÉÒÔ»ñÈ¡µ½¡£
String sql="select * from jp_kss";
OracleDa ......
¸÷λÀÏ´óÃÇÍƼö±¾Êé°É¡«
×îºÃ²»ÒªÔÛ¹ú¼ÒÈËдµÄ£®ÎÒÒ»Ö±¸Ð¾õÔÛÃǹúµÄר¼ÒÃÇдÊéÍùÄÑÁËдËùÓÐÈ˶Á²»¶®ËûÃDzŸßÐË£®£®
Óб¾ÊéºÃÏñÊÇ¡®¾«Í¨9i/10g ±à³Ì¡¯Í¦»ù´¡µÄ¡£
ÏëÁ˽âÌåϵ½á¹¹¿ÉÒÔÑ¡¡¶Oracle9i&10g±à³ÌÒÕÊõ££ÉîÈëÊý¾Ý¿âÌåϵ½á¹¹¡· ÈËÃñÓʵç³ö°æÉç
ÈôÊÇÏëѧSQL»òÊÇPL/SQLÄÇ¿ÉÑ¡µÄÊéÓкܶ࣬LZ×Ô¼º¶àÕÒÕÒ°É¡£
......
ÈçÌ⣺
ͳ¼Æ±íÖÐ×òÌìÿ¸ô10·ÖÖӵļǼÊý¡£
ʱ¼ä¶ÎÖÐÓоÍÏÔʾ¾ßÌåcountÊý£¬Ã»ÓоÍÏÔʾ0£¡
SQL code:
create table tb(id number, dtime date)
insert into tb (id, dtime)
values (1, to_date('2010-05-26 15:17:06', 'dd-mm-yyyy hh24:mi:ss'))
/
insert into tb (id, dtime)
values (2, to_da ......
ÔÚemis.answerlib_1±íÖУ¬ÓÉÓÚʧÎ󣬽«ÁÐanswer ÀïÃæµÄºÜ¶àÊý¾Ý±ä³ÉÕâÑù
Question_ID Answer
1061 abcdabcd
1062 abdabd
¾ÍÊÇÊý¾ÝÖظ´ÁË ÎÒÏë°ÑËü±ä³Éabcd¡¢abdÈ¥³ýÿһÁÐÀïÃæÖظ´µÄÊý¾Ý
update emis.answerlib_1 a set a.answer=( select substr(answer,1,length(answer)/2) f ......
tableÓÐÁ½¸ö×Ö¶Îcode¡¢name
--------------------------
---code--------------name----------
--10000--------------СÕÅ----------
--20000------------СÀî,С³Â-------
--30000-----------СÍõ,СÖÜ,СÃ×---
code×Ö¶ÎÊÇÊý×Ö£¬name×Ö¶ÎÊÇÃû×Ö£¬ÓпÉÄÜÊÇÒ»¸ö»ò¶à¸ö£¬¶à¸öµÄʱºòÓöººÅ·Ö¸ô¡£
ÏÖÔÚÒªµÄ²éѯ½á¹ûÊÇ£ºÈ ......
×ܼǼÊý:1827; ×ÜÒ³Êý:305; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [4] [5] [6] [7] 8
[9] [10] [11] [12] [13] ÏÂÒ»Ò³ βҳ