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

linux ÏÂc++¼°mysql¶Ôʱ¼ä´¦ÀíµÄ³£Óü¼ÇÉ

mysql ½Øȡijһ¸öʱ¼ä(datetimeÀàÐÍ)µÄÈÕÆÚ£º
·½·¨1£ºselect date(row_name) from table_name where row = row1;
·½·¨2£ºselect left(row_name, 10) from table_name where row = row1;
·½·¨3£ºselect cast(row_name as char[10]) from table_name where row = row1;
È¡µÃij¸öÈÕÆÚµÄtime_tÊýÖµ£ºselect unix_timestamp(date(row_name)) from table_name where row = row1;
ÒÔtime_tΪ²ÎÊýÈ¡µÃij¸öʱ¼ä
time_t ÊÇ'1970-01-01 00:00:00'ÒÔÀ´µÄÃëÊý
select '1970-01-01 00:00:00'+ INTERVAL time_t_num SECOND ;
È¡µÃµ±Ç°ÈÕÆÚ£ºselect curdate();
È¡µÃµ±Ç°Ê±¼ä£ºselect now();
½«ÈÕÆÚת»¯Îª¶ÌÈÕÆÚ¸ñʽ
SELECT REPLACE(date(row_name),  '-0',  '-');
linuxÏÂc++³£ÓÃʱ¼ä´¦Àíº¯Êý
clock()ÓÃÀ´³ÌÐò¼Æʱ
ÀýÈ磺 ÒÔÏÂÕª×Ô
#include “stdio.h”
#include “stdlib.h”
#include “time.h”
int main( void )
{
   long    i = 10000000L;
   clock_t start, finish;
   double  duration;
   /* ²âÁ¿Ò»¸öʼþ³ÖÐøµÄʱ¼ä*/
   printf( "Time to do %ld empty loops is ", i );
   start = clock();
   while( i-- )      ;
   finish = clock();
   duration = (double)(finish - start) / CLOCKS_PER_SEC;
   printf( "%f seconds\n", duration );
   system("pause");
}
ʾÀý³ö´¦£ºDIY²¿Âä(http://www.diybl.com/course/3_program/vc/vc_js/20090307/159296.html)
time_tÀàÐÍ
time_t  t = time(NULL);
time_tת³ÉtmÀàÐÍ
struct tm*  t_tm = localtime(time(NULL));
time_tת³É×Ö·û´®¸ñʽ
struct tm* tm_ago = localtime(&t);
sprintf(date_days_ago, "%04d-%02d-%02d", 1900+tm_ago->tm_year,
                                tm_ago->tm_mon+1, tm_ago->tm_mday);
 
time_t t_now = time(NULL);   //seconds since 1970-01-01
        struct


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

Linuxϵͳ¹ÜÀíʵ¼ù(8)£ºÍøÂçÅäÖà (Ðø)

     12¡¢ÍøÂç½ÓÈëµÄÅäÖùý³Ì£º
    ÏÖÔÚµÄLinuxÒ»°ãÔÚÆô¶¯Ê±»á×Ô¶¯ÅäÖúÃÍø¿¨£¨ÓÐÏßÍø¿¨»òÎÞÏßÍø¿¨£©£¬Ö»ÒªÖ±½ÓÉèÖúõÄËüµÄIP£¨¿ÉÒÔÓÃDHCP£©¡¢×ÓÍøÑÚÂ롢ĬÈÏ·ÓÉ£¨¼´Ä¬ÈÏÍø¹Ø£©¡¢ÓÐʱ»¹ÒªÉèÖÃÒ»ÏÂDNS£¬¾Í¿ÉÒÔÉÏÍøÁË¡£ÕâЩÅäÖÃÏÖÔÚ¶¼ÓÐͼÐÎÓû§½çÃ棬һ°ãÔÚϵͳÀ¸µÄ×óÉϽǣ¬Ö±½Ó´ò¿ª ......

php ajax mysql±àÂëgb2312

 1¡¢PHP·¢ËÍÖÐÎÄ¡¢Ajax½ÓÊÕ
Ö»ÐèÔÚphp¶¥²¿¼ÓÈëÒ»¾ä£º
header('Content-type: text/html;charset=GB2312');
xmlHttp»áÕýÈ·½âÎöÆäÖеÄÖÐÎÄ¡£
2¡¢Ajax·¢ËÍÖÐÎÄ¡¢PHP½ÓÊÕ
Õâ¸ö±È½Ï¸´ÔÓ£º
AjaxÖÐÏÈÓÃencodeURIComponent¶ÔÒªÌá½»µÄÖÐÎĽøÐбàÂë
PHPÖУº
$GB2312string=iconv( ‘UTF-8′, ‘gb2312//I ......

ÎÄ˼´´ÐÂÈí¼þ·þÎñ²¿11ÔÂ×îÐÂְλ¸üРjava c++

ÎÄ˼ÐÅÏ¢¼¼ÊõÓÐÏÞ¹«Ë¾www.vanceinfo.com£¨Å¦½»ËùÉÏÊдúÂ룺VIT£©³ÉÁ¢ÓÚ1995Ä꣬ÊÇÒ»¼ÒÐÅÏ¢¼¼Êõ·þÎñÌṩÉ̼°ÔÚÖйú¾ÓÁìÏȵØλµÄÀë°¶Èí¼þ¿ª·¢¹«Ë¾Ö®Ò»¡£ÎÄ˼ÊǵÚÒ»¼ÒÔÚŦԼ¹ÉƱ½»Ò×ËùÉÏÊеÄÖйúÈí¼þ·þÎñÍâ°üÆóÒµ¡£¾Ý¹ú¼ÊÊý¾Ý¹«Ë¾(IDC)µÄͳ¼Æ, ÒÔ2007ÄêÏúÊÛ¶îºâÁ¿, ÎÄ˼ÐÅÏ¢¼¼ÊõÔÚΪŷÃÀÊг¡ÌṩÀë°¶Èí¼þ¿ª·¢ÐÐÒµÖÐλ¾ÓÖйúµÚÒ ......

mysql£ºÍò¶ñµÄÂÒÂëÖ®whenÓï¾äÖвúÉúµÄÂÒÂë

ʹÓÃmysqlÓÖÓöµ½ÎÊÌâÁË£¬Õâ´ÎÊǹØÓÚÂÒÂëµÄ...
ÆäʵÎÒÒ²±È½ÏÁ˽â±àÂëµÄÎÊÌ⣬Ҳ֪µÀÂÒÂë²úÉúµÄÔ­Àí£¬¶øÇÒÍøÉ϶ÔmysqlµÄÂÒÂëÎÊÌâÒ²ÓбȽ϶àµÄ½â´ð£¬
µ«ÊǽñÌìÎÒÓöµ½µÄÕâ¸öÂÒÂëÈ´±È½ÏÆæ¹Ö,ÔÚwhenÓï¾äÖвúÉúÁËÆæ¹ÖµÄÂÒÂë¡£
create table my_table(id int, name varchar(50), born DateTime);
insert into my_table val ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ