mysqlµÄsql_mode½éÉÜ
mysql¿ÉÒÔÔËÐÐÔÚ²»Í¬sql modeģʽÏÂÃ棬sql modeģʽ¶¨ÒåÁËmysqlÓ¦¸ÃÖ§³ÖµÄsqlÓï·¨£¬Êý¾ÝУÑéµÈ£¡
²é¿´Ä¬ÈϵÄsql modeģʽ£º
select @@sql_mode;
ÎÒµÄÊý¾Ý¿âÊÇ£º
STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
ÔÚ´ËģʽÏÂÃ棬Èç¹û²åÈëµÄÊý¾ÝµÄ³¤¶È´óÓÚ¶¨ÒåµÄ³¤¶È£¬ÄÇô¾Í»á±¨´í£¡
set session sql_mode='REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI';
ÔÚÕâÖÖģʽÏÂÃ棺²åÈëµÄÊý¾ÝµÄ³¤¶È´óÓÚ¶¨ÒåµÄʱºò£¬¾Í»á½ØÈ¡£¬²¢¾¯¸æ£¬µ«ÊÇ¿ÉÒÔ²åÈë½øÈ¥
session±íʾֻÔÚ±¾´ÎÖÐÓÐЧ
global£º±íʾÔÚ±¾´ÎÁ¬½ÓÖв»ÉúЧ£¬¶ø¶ÔÓÚеÄÁ¬½Ó¾ÍÉúЧ
ÆôÓÃNO_BACKSLASH_ESCAPESģʽ£¬Ê¹·´Ð±Ïß³ÉΪÆÕͨ×Ö·û£¬ÔÚµ¼ÈëÊý¾Ýʱºò£¬Èç¹ûÊý¾ÝÖÐÓз´Ð±Ïߣ¬ÆôÓÃÕâ¸öģʽÊǸö²»´íµÄÑ¡Ôñ
ÆôÓÃPIPES_AS_CNCATģʽ£¬½«||¿´³ÉÊÇÆÕͨ×Ö·û´®
³£ÓõÄsql mode£º
sql modeÖµ ˵Ã÷
ANSI 'REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACEºÍANSI×éºÏ'£¬ÕâÖÖģʽʹÓï·¨ºÍÐÐΪ¸ü·ûºÏ±ê×¼µÄsql
STRICT_TRANS_TABLES ʹÓÃÓëÊÂÎñºÍ·ÇÊÂÎñ±í£¬Ñϸñģʽ
TRADITIONAL Ò²ÊÇÑϸñģʽ£¬¶ÔÓÚ²åÈë²»ÕýÈ·µÄÖµ¸ø³ö´íÎó¶ø²»ÊǾ¯¸æ¡£ÓÃÔÚÊÂÎñʱ£¬Ö»Òª·¢Éú´íÎó¾ÍÁ¢¼´»Ø¹ö
±¾ÎÄÀ´×Ô: (www.91linux.com) Ïêϸ³ö´¦²Î¿¼£ºhttp://www.91linux.com/html/article/database/mysql/20081127/13955.html
Ïà¹ØÎĵµ£º
master..xp_dirtree 'D:\',1,1 µÚÒ»¸ö1ÊÇÉî¶È£¬µÚ¶þ¸ö1ÊÇÎļþ
1. Ö´ÐÐ master..xp_dirtree 'c:\',1,1,ÕâÑù¿ÉÒÔ»ñÈ¡c:\ϵÄËùÓÐÎļþºÍÎļþ¼Ð,²»°üÀ¨×ÓÎļþ¼Ð¼°Îļþ
2. ÏÔʾÔÚtreeviewÖÐ,ÓñêÖ ......
±àÂëÊǸöºÜ»ù´¡µÄÎÊÌ⣬ҲÊÇ´ó¼ÒºÜÈÝÒ׺öÂÔµÄÎÊÌ⣬д´úÂë֮ǰ¶à¶à¿¼ÂÇ£¬ÒÔºó»áÉٺܶàÂé·³¡£
PHP·¢Õ¹Á˲»ÉÙ£¬ÏÖÔÚpearÓÃÆðÀ´ºÜ·½±ã£¬ÆäÖоÍÓÐÏà¹ØµÄclassÀ´¶ÁÈ¡ExcelÎļþÀïÃæµÄÄÚÈÝ£¬Èç¹û²»ÏëʹÓÃpearµÄ»°£¬¿ÉÒÔ¿¼ÂÇʹÓÃexcel_class.php£¬googleһϣ¬¿ÉÒÔÕÒµ½Õâ¸öclassµÄsource codeÏÂÔØ£¬Ò²ÄÜÕÒµ½»ù±¾µÄexample c ......
/******************************************************************************/
/*
Ö÷Á÷Êý¾Ý¿âMYSQL/MSSQL/ORACLE²âÊÔÊý¾Ý¿â½Å±¾´úÂë
½Å±¾ÈÎÎñ:½¨Á¢4¸ö±í,Ìí¼ÓÖ÷¼ü,Íâ¼ü£¬²åÈëÊý¾Ý,½¨Á¢ÊÓͼ
ÔËÐл·¾³1:microsoft sqlserver 2000 ²éѯ·ÖÎöÆ÷
ÔËÐл·¾³2:mysql5.0 phpMyAdminÍøÒ³½çÃæ
ÔËÐл·¾³3:oracle 9i SQL*P ......