mysqlÖжà±í²éѯµÄÎÊÌâ...
ÎÒÓÐ6ÕÅ±í ·Ö±ðÊÇ£º t1,t2,t3,t4,t5,t6 Õâ6ÕÅ±í¶¼ÓиöÏàͬµÄ×Ö¶Îifm ÎÒÏëͬʱ²éѯÕâ6Õűí....°ÑËùÓеıíÖÐifm=1µÄÐÅÏ¢¶¼µ÷È¡³öÀ´.. SQLÓï¾ä¸ÄÔõôд°¡£¿£¿£¿ ÎÒÊÇÕâÑùдµÄ...µ«ÊÇÖ»ÒªÓÐÒ»¸ö±íµÄifm²»µÈÓÚ1£¬ÆäËûËùÓбíµÄÐÅÏ¢¶¼²é²»³öÀ´... select * from t1,t2,t3,t4,t5,t6 where t1.ifm=t2.ifm=t3.ifm=t4.ifm=t5.ifm=t6.ifm=1; Ó¦¸ÃÔõôд°¡£¿£¿£¿£¿£¿
ÒýÓà Èç¹û6¸ö±íµÄ±í½á¹¹¶¼ÊÇÒ»ÑùµÄ£¬¿ÉÒÔÕâÑù SQL codeselect*from t1where ifm=1unionallselect*from t2where ifm=1unionallselect*from t3where ifm=1unionallselect*from t4where ifm=1unionallselect*from t5where ifm=1unionallselect*from t6where ifm=1 ÕâÑùÃ²ËÆ²»ÐÐ.. 6¸ö±íµÄ½á¹¹¶¼ÊDz»Í¬µÄ....Ö»ÓÐÕâ¸öifm×Ö¶ÎÊÇÒ»ÑùµÄ.......... select title from t1 where ifm=1 union all select title from t2 where ifm=1 union all select title from t3 where ifm=1 union all select title from t4 where ifm=1 union all select title from t5 where ifm=1 union all select title from t6 where ifm=1 °Ñ* ¸Ä³Étitle ,ËûÃÇ»¹Óиö¹²Í¬µÄ×Ö¶Îtitle .... ÕâÑù¿ÉÒÔÁË....... ¶àл¶þÂ¥ÌáÐÑ....
Ïà¹ØÎÊ´ð£º
±àÒëÆ÷£ºC-Free4 mysql µ¥¶À°²×°µÄ£¬ÏÖÔÚΪapache+php+mysql¿ÉÒÔʹÓᣠ×î½üÔÚÁ·Ï°c£¬c++£»ÏëÓÃc£¬c++Á¬½ÓÏÂÎÒµÄmysql£¬ºÃ¶àµØ·½¶à˵mysql.hÕÒ²»µ½¡£¶øÇÒÎÒmysqlûÓÐËùνµÄincludeÎļþ¼Ð°¡¡£ Íü¸ßÊÖÖ¸µãÒ»¶ ......
import java.sql.*; public class A { public static void main(String[] args) { try { Class.forName("com.mysql.jdbc.Driver"); String url="jdbc:mysql://localhost ......
SQL code: UPDATE `footballmatch`.`promote` SET `pr_ballhype` = http://ballhype.com/post/url/?url=http%3A//www.allfootballtv.com/%3Fp%3D369&league=8 WHERE `promote`.`fm_post_id` =369 ÒÔÉ ......
select id,dtime,zt,optype( Èç¹ûoptype=0½«±¾ÌõÊý¾Ý²åÈëµ½table1±íÖУ¬Èç¹ûoptype=1ÒÔdtimeºÍztΪÌõ¼þÖ´ÐÐÒ»Ìõ²éѯÓï¾ä ) from table ʵÏÖÕâ¸öÒªÇóµÄÓï·¨Ôõôд Ò»ÌõSQLÓï¾ä¹À¼Æ¸ã²»¶¨¡£µÈ¥Ϻ÷½·¨£¡ Èç¹ ......