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

java È¡×Ö¶ÎÃû

select a.name as parename ,b.name as chliname,a.typeId as paretype,b.typeid as chlitype from prodkind a inner join prodkind b where a.typeId=b.parentId
²é³öÀ´µÄ×Ö¶ÎÃû³Æ²»ÊÇ parename ¶øÊÇname


select name as parename ,(select name from prodkind where typeId='"+typeid+"') chilname, count(*)num from prodkind

²éѯµÄ µÚÒ»¸öname »¹ÊÇname
µÚ¶þ¸ö ¾ÍÊÇchilname
ΪʲôÓеÄÄܵõ½±ðÃûÄØ £¡

Ï£Íû´ó¼Ò°ï°ï
°ï¶¥


ÒýÓÃ
ÎÒûÅö¹ýÕâÖÖÇé¿ö£¬Äã¿ÉÒÔÊÔÊÔ°Ñ as È¥µô¿´Ï¡­¡­
ÄãÊÇÔÚ²éѯ·ÖÎöÆ÷Àï¿´µ½µÄÂ𣿾ÍÊDzéѯµÄ½á¹ûÖУ¬±íÍ·ÊÇ name ¶ø²»ÊÇ parename


Ó¦¸ÃÊÇJavaÈ¡µÄ£¬²éѯ·ÖÎöÆ÷±ðÃû¿Ï¶¨³öµÃÀ´

ÊÇ°¡ ÔÚÄÇÊÇ¿ÉÒÔµÄ
¾ÍÊÇÓóÌÐò ¶Á³öÀ´µÄ ¶Á²»³ö±ðÃû
Óà ȡ±ðÃûµÄ·½·¨¶¼ÊÔÁË ¶¼²»ÐÐ

Óа취ÁË ¾ÍÊÇ select* from(

select a.name as parename ,b.name as chliname,a.typeId as paretype,b.typeid as chlitype from prodkind a inner join prodkind b where a.typeId=b.parentId

)

ÕâÑù ¾Í¿ÉÒÔÁË ÔÎ £¡°¥ ÒÔǰû·¢ÏÖ

ѧϰÁË¡£

ѧϰ!

¹§Ï²Ò»Ï£¡

±È½ÏÓÐÒâ˼£¬Ï¸½ÚÒ²ºÜÖØÒª£¬ÍùÍùÀ§ÈźܾõÄÒ»¸öÎÊÌ⣬¾ÍÊÇÒ»¸öϸ½Ú£¬Ñ§Ï°£¡£¡

ûÃ÷°×ÒªÎÊʲô¶¼ £¬º¹¡£¡£¡£


Ïà¹ØÎÊ´ð£º

¹ØÓÚjspÂÛ̳ - Java / Web ¿ª·¢

ÎÒÏÖÔÚÏëÓÃsshÕûºÏÀ´×öÒ»¸öÂÛ̳£¬µ«Êý¾Ý¿â·½Ãæ²»ÐУ¬ÎÒÖ÷Òª²»»áÉæ¼°Êý¾Ý¿â£¬²»ÖªµÀ·¢Ìû±í£¬ºÍ»ØÌû±íÒªÈçºÎÉè¼ÆºÍÇø·Ö¡£²»ÖªµÀË­ÓÐÒ»¸ö¼òµ¥µÄ˼·£¬À´Éè¼ÆÕâЩ±í¡£Ð»Ð»ÁË¡£
·¢ÌûºÍ»ØÌûÓÃͬһÕÅ±í ¡£·¢Ìû id user ......

jsp ÖÐÂÒÂëµÄ - Java / Web ¿ª·¢

ÎҵĿª·¢µÄƽ̨ÊÇMyeclipes6.0 + tomcat5.x + mysql
ÎÒËùÓеıàÂ뷽ʽ¶¼ÊÇÓõÄUTF-8 
ÎÒÖ»ÓÃÁËStrtus¿ò¼Ü
ÔÚÒ»¸öformÖÐÈçÏÂÓõÄÊÇpostµÄÌá½»·½Ê½£º
 <form class="form" action=&quo ......

mapxtreme for java ÈçºÎÔÚͼ²ã»­Ïߣ¿

²éAPI£¬¿´µ½FeatrueFactoryÓÐÕâ¸ö·½·¨
public Feature createPolyLine(double[][] thePoints,
                              R ......

javaÓï·¨ÎÊÌâ - Java / Java EE

import java.io.*;
class FileTest
{
public static void main(String [] args) throws Exception
{

File fDir=new File(File.separator);
String strFile="javaÔ´´úÂë²âÊÔ"+File.separato ......

JAVA×î¸ßЧµÄ¿ª·¢¼Ü¹¹ÊÇʲô£¿

JAVA×î¸ßЧµÄ¿ª·¢¼Ü¹¹ÊÇʲô£¿
¹úÇì·Å¼ÙÕ⼸ÌìÓÐʱ¼ä˼¿¼Ò»Ð©Æ½Ê±²»ÄÜ˼¿¼µÄÊÂÇé¡£ÆäÖÐÖ®Ò»¾ÍÊÇJAVA×î¸ßЧµÄ¿ª·¢¼Ü¹¹ÊÇʲô¡£
ÎÒÃǹ«Ë¾ÓÃappfuse¼Ü¹¹¿ª·¢£¬ÕæÂý°¡£¡ÕæµÄ£¬Ò»¸ö´óÏîÄ¿µÄ¿ª·¢°Ñʱ¼ä¶¼À˷ѵ½ÅäÖÃÉ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ