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

Çó´Ësql¼ò»¯

SQL code:
select a.nm
from a
where a.op_id=(select a.op_id
from a,b
where a.op_id=b.u_id and b.or_id=(select b.or_id
from b,c
where b.or_id=c.re_id and c.re_id='000022'))

SQL code:
select select a.nm
from a,b,c
where a.op_id=b.u_id
and b.or_id=c.re_id
and c.re_id='000022'


ͬÒâLS

SQL code:
select a.nm
from a,b
where a.op_id=b.u_id and b.or_id='000022'


SQL code:

select a.nm from a,b,c
where a.op_id=b.u_id and b.or_id=c.re_id and c.re_id='000022'

--or
select a.nm from a,b
where a.op_id=b.u_id and b.or_id='000022'




ÒýÓÃ
select select a.nm
from a,b,c
where a.op_id=b.u_id
and  b.or_id=c.re_id
and  c.re_id='000022'

dui

select a.nm,b.nm from a,b
where a.ap_id=b.u_id and a.op_id=b.u_id and  b.o


Ïà¹ØÎÊ´ð£º

Êý¾Ý´°¿Ú¶¯Ì¬ÐÞ¸ÄSql - PowerBuilder / DataWindow

ΪÁËÂú×ãÊý¾Ý²éѯµÄËÙ¶ÈÎÊÌ⣬ÎÒ½«Ò»ÕÅÊý¾ÝÁ¿´óµÄѧÉú±í°´Äê¶È·Ö³É¶à¸ö±í
students_2008, students_2009È»ºóÎÒÓÖ×öÁËÒ»¸öÄ£°å±ístudents_template,Ä£°å±íÖеÄ×ֶκÍstudents_2008, students_2009Ò»Ñù£¬Ö»²»¹ýÊÇÒ»¸ö ......

pl/SqlÈçºÎ²éѯ×Ö·û´®°üÀ¨%

pl/SqlÈçºÎ²éѯ×Ö·û´®°üÀ¨%, 
ÀýÈç:TABLE a
columnA
'222'
'33%44'
ÈçºÎ²éѯ±íaÖÐcolumnA×Ö¶ÎÖÐÄÄЩÐаüº¬'%'
лл
select * from a
where columna like '%/%%' escape '/'

UP

SELECT * from a ......

sql º¯ÊýÎÊÌâ

sql 2005Êý¾Ý¿âÎÒÏëµÃµ½Ò»×Ö·û´®Îª:
sldkf|||sdeww
erkv|||rltdk
jemcl|||ligf
¾ÍÊÇ|||ºóÃæµÄ×Ö·ûÓÐʲôº¯ÊýÄܵõ½Âð£¿ÊÇÔÚsqlÓï¾äдµÄ£¬²»ÊÇÔÚÒ³ÃæÐ´µÄ£¬ÄÇλ¸ßÊÖÀ´Ö¸½ÌÏ£¬ÐÂÊÖ£¬Ð»Ð»
ÔΠ µ ......

ÇóÒ»¸öSQLµÃ²éѯÓï¾ä

ÒÑÖªÒ»¸ö¹©Ó¦Çé¿ö±í SPJ
ÓÐÊôÐÔ ¹©Ó¦É̺ÅÂë SNO
  Áã¼þºÅÂë PNO
  ¹¤³ÌÏîÄ¿ºÅÂë JNO
  Áã¼þÊýÁ¿ QTY
ÇóÂú×ãÏÂÃæÒªÇóµÄ¹©Ó¦É̺ÅÂ룬¸Ã¹©Ó¦É̹©Ó¦¸øÄ³¸ö¹¤³ÌÁã¼þP1 µÄÊýÁ ......

Ò»Ìõsql²éѯÓï¾ä

ÌâÄ¿£º°Ñ¡°SC¡±±íÖС°Ò¶Æ½¡±ÀÏʦ½ÌµÄ¿ÎµÄ³É¼¨¶¼¸ü¸ÄΪ´Ë¿Î³ÌµÄƽ¾ù³É¼¨£» 
sqlÓï¾ä£º
  update SC set score=(SELECT avg(SC_2.score)  
  from SC SC_2  
  WHERE S ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ