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

ÇómysqlÓï¾ä - PHP / »ù´¡±à³Ì

ÓÐÕâÑùÁ½Õűí

volume ¾ç±¾·Ö¾í±í

×ֶΠעÊÍ
volid ·Ö¾íID
title ·Ö¾íÃû³Æ
dateline ·¢²¼Ê±¼ä

section ¾ç±¾Õ½ڱí

×ֶΠעÊÍ
secid Õ½ÚID
volid ·Ö¾íID
subject Õ½ڱêÌâ
dateline ¸üÐÂʱ¼ä

ÎÒÏëÏȲéѯ³ö·Ö¾í£¬È»ºóÿ¸ö·Ö¾íÖж¼ÏÔʾ×îеÄÒ»¸öÕ½ڣ¬ÓÃÒ»¾äsqlÓï¾äÔõôʵÏÖ£¿
SELECT v.*,s.subject from volume v LEFT JOIN section s ON s.volid=v.volid
ÓÃleft join Äܲ»ÄÜʵÏÖ½µÐòµÄ£¿
µ±È»¿ÉÒÔ£¬Ö±½Ó¸úÉÏ ORDER BY volid DESC//»»³ÉÄãÏëÒªµÄ¾ÍÊÇ£¬Ò»ÑùµÄ°¡

ÒýÓÃ
µ±È»¿ÉÒÔ£¬Ö±½Ó¸úÉÏ ORDER BY volid DESC//»»³ÉÄãÏëÒªµÄ¾ÍÊÇ£¬Ò»ÑùµÄ°¡


SELECT v.*,s.subject from volume v LEFT JOIN section s ON s.volid=v.volid
ORDER BY s.dateline WHERE v.volid>2 DESC ORDER BY v.dateline DESC

ÕâÑù£¿ ÕâÑù±¨´íµÄ

ÒýÓÃ
µ±È»¿ÉÒÔ£¬Ö±½Ó¸úÉÏ ORDER BY volid DESC//»»³ÉÄãÏëÒªµÄ¾ÍÊÇ£¬Ò»ÑùµÄ°¡


SELECT v.*,s.subject from volume v LEFT JOIN section s ON s.volid=v.volid
ORDER BY s.dateline DESC WHERE v.volid>2 ORDER BY v.dateline DESC

ÕâÑù£¿ ÕâÑù±¨´íµÄ

SQL code:
SELECT v.*,s.subject from volume v LEFT JOIN section s ON s.volid=v.volid WHERE v.volid>2 ORDER BY v.dateline DESC


ÒýÓÃ
SQL code
SEL


Ïà¹ØÎÊ´ð£º

ÇëÎÊphp²ÉÓÃʲô¼ÓÃÜ·½Ê½²»±»Æƽ⣿ - PHP / »ù´¡±à³Ì

zend guard¼ÓÃܵÄphpÊÇ¿ÉÒÔÆƽâµÄ£¬ÓÐµÄ ËµÊÇʹÓú¯Êý»ìÏý¿ÉÒÔ¸üÄÑÆƽâһЩ¡£ÔõôʹÓÃÄØ¡£
»òÕß´ó¼Ò¸æËßÎÒÄÄÖÖ¼ÓÃÜ·½Ê½¸ü°²È«¡£Ð»Ð»ÁË¡£
ÎÒÄ¿Ç°µÄzend guard°æ±¾ÊÇ4.0.1
ÎÞ½â

ÒýÓÃ
ÎÞ½â
²»¿ÉÄÜ°É¡£ÔÚÍøÉϲéÁ ......

ÕÒ¹¤×÷ºÍ¶Ô¸ÕѧPHPµÄÅóÓѵÄÖÒ¸æ - PHP / ¿ªÔ´×ÊÔ´

Ä¿Ç°ÔÚÎ人ÕÒ¹¤×÷  
·¢Ïִ󲿷ֹ«Ë¾ÎÞÍâºõÁ½ÖÖ
Ò»ÖÖÊǸãÍâ°üµÄ ÒªÓÃzend,cakephpµÈÍâ¹ú¿ò¼Ü
»¹ÒªÊìϤÍâ¹ú¿ªÔ´ÏµÍ³
Ò»ÖÖ¹úÄÚµÄ ÎÞÍâºõ dedecms ecshop shopexÕ⼸ÖÖ¸ÄÕ¾µã ÓеĹ«Ë¾ÉõÖÁÄÃһЩ¸üСµÄϵͳ¸ ......

phpÁ¬½ÓMSSQL Á¬²»ÉÏ - PHP / »ù´¡±à³Ì

Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Çý¶¯³ÌÐò¹ÜÀíÆ÷] δ·¢ÏÖÊý¾ÝÔ´Ãû³Æ²¢ÇÒδָ¶¨Ä¬ÈÏÇý¶¯³ÌÐò, SQL state IM002 in SQLConnect in D:\0\msc\msc\tel.php on line 44
Í ......

php---ǧ·Öλ·Ö¸ô·û£¿ - PHP / ¿ªÔ´×ÊÔ´

phpÖÐÈçºÎÊä³öǧ·Öλ·Ö¸ô·û¡£¡£¡£¡£¡£

number_format

PHP code:

//ÊÇÕâÖÖЧ¹û°É£¿
echo number_format(123123123, 2, '.', ',');
//½á¹ûÊä³ö123,123,123.00 2ÊÇСÊýµãºóλÊý£¬µÚÈý¸ö²ÎÊýÊÇСÊýµã·Ö¸ô·û ......

Ôõô°ÑMDFÊý¾Ýתµ½MySQL£¿ - MS-SQL Server / »ù´¡Àà

Ôõô°ÑMDFÊý¾Ýתµ½MySQL£¿
ÖÁÉٵø½¼Óµ½sqlserverÉÏ

¾ßÌåÔõôŪ°¡ ÎҵıÏÒµÉè¼ÆµÄÊý¾Ý¿âÊÇ´ÓÍøÉÏdownÏÂÀ´µÄ£¿£¿

Ä㻹²»ÈçÖ±½ÓÓÃsqlserverÄØ

º¯Êý¡¢´æ´¢¹ý³Ì¶¼µÃ¸ÄÁË¡£

sqlserverûÔõôÓùý¡£Ò²Ã»Óа²× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ