Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : sql

sqlÄ£ºý²éѯÎÊÌâ

SELECT * from  So_Master where customer_name like '%µç%'
Óöµ½Ò»¸öºÜÆæ¹ÖµÄÎÊÌ⣬һЩÊý¾Ý¾¹È»ËѲ»µ½¡£
±ÈÈçÆäÖоÍÓиö×Ö¶ÎÊǵç×ÓÓÐÏÞ¹«Ë¾£¬µ«ËѵĽá¹ûΪ¿Õ£¬ÓÐûÓа취½â¾ö

Ó¦¸Ã²»ÊÇÄãÕâ¾äSqlµÄÎÊÌâ

µç×ÓÓÐÏÞ¹«Ë¾ ²»ÔÚ customer_name

µç×ÓÓÐÏÞ¹«Ë¾ ²»ÔÚ customer_name
»òÕß²»Ôڴ˱í ......

sql ²éѯÓï¾ä

Êý¾Ý±íÓÐ×Ö¶ÎA,B
ÓÐûÓа취ͬ¸öÒ»¸ö²éѯÓï¾äÍê³ÉÕâÖÖ²éѯ,A-B
A-B>0µÄʱºòselect A-B from table
A-B <0µÄʱºòselect B-A from table
Ï£Íû²éѯ½á¹ûÖ»ÓÐÒ»¸ö½á¹û¼¯,ÇëÅóÓÑÃÇÖ¸µ¼.
SQL code:
select case when a-b>0 then a-b when a-b<0 then b-a else 0 end from table


SQL code:
SELE ......

sqlÓï¾ä´íÎó

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '5,22.0,1,6)' at line 1


public void saveOrder(SalesOrder so) {
Connection conn=null;
PreparedStatement pstmt=null;
ResultSet rsKey=n ......

SQL×îÖÕ²éѯ

ÏÖÔÚ
select a from table_a where aa=123
select b from table_a where aa=32
select sum(aa) as c from table_a where aa=44
select sum(bb) as d from table_a where aa=88
ÏÖÔÚÒª°ÑËľäÖ®ÓÃÒ»¾äÀ´Ìæ´ú£¬ÊµÏÖ²éѯ½á¹ûÀàËÆÏÂÃæµÄ£¬²»ÊÇÓÃunionʵÏֵļòµ¥Á¬½Ó£¬Òª½á¹ûÖÐÓÐÕâËĸö×ֶΣ¬ÓÃunionµÄ»°¾ÍÖ»ÓÐÒ» ......

sql ²éѯÎÊÌâ

´óÀà СÀà ÊýÁ¿ ¼Û¸ñ ²¹Ìù µ¥Î»
¶¯Á¦»úе 9.1.1ÂÖʽÍÏÀ­»ú 1 107200 32000 ²ÌµéÇø
¶¯Á¦»úе 9.1.1ÂÖʽÍÏÀ­»ú 1 16980 5000 ¶«Î÷ºþ
¶¯Á¦»úе 9.1.1ÂÖʽÍÏÀ­»ú 1 107200 32000 ²ÌµéÇø
¸ûÕûµØ»úе 1.1.4 Ðý¸û»ú 1 6050 2300 ¶«Î÷ºþ
ÐóÄÁË®²úÑøÖ³»úе 8.4.1ÔöÑõ»ú 1 2400 700 ¶«Î÷ºþ
ÐóÄÁË®²úÑøÖ³»úе 8.4.2Í ......

[Çó½Ì]SQLÓï¾ä

±íAÖÐÓÐÈçÏÂÊý¾Ý£º
¡¡¡¡a  1  2
¡¡¡¡a  2  3
¡¡¡¡a  3  3
¡¡¡¡b  1  2
¡¡¡¡b  2  4
¡¡¡¡b  5  5

¡¡ÎÒÏë²éѯ³öÀ´µÄ½á¹ûÈçÏ£º
¡¡a  1  2    b  1  2     
  a&nbs ......
×ܼǼÊý:3315; ×ÜÒ³Êý:553; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [270] [271] [272] [273] 274 [275] [276] [277] [278] [279]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ