MySQLתÒå
MySQLʶ±ðÏÂÁÐתÒå×Ö·û£º
\0
Ò»¸öASCII 0 (NUL)×Ö·û¡£
\n
Ò»¸öÐÂÐзû¡£
\t
Ò»¸ö¶¨Î»·û¡£
\r
Ò»¸ö»Ø³µ·û¡£
\b
Ò»¸öÍ˸ñ·û¡£
\'
Ò»¸öµ¥ÒýºÅ(“'”)·û¡£
\"
Ò»¸öË«ÒýºÅ(“"”)·û¡£
\\
Ò»¸ö·´Ð±Ïß(“\”)·û¡£
\%
Ò»¸ö“%”·û¡£ËüÓÃÓÚÔÚÕýÎÄÖÐËÑË÷“%”µÄÎÄ×ÖʵÀý£¬·ñÔòÕâÀï“%”½«½âÊÍΪһ¸öͨÅä·û¡£
\_
Ò»¸ö“_”·û¡£ËüÓÃÓÚÔÚÕýÎÄÖÐËÑË÷“_”µÄÎÄ×ÖʵÀý£¬·ñÔòÕâÀï“_”½«½âÊÍΪһ¸öͨÅä·û¡£
×¢Ò⣬Èç¹ûÄãÔÚijЩÕýÎÄ»·¾³ÖÐʹÓÓ\%”»ò“\%_”£¬ÕâЩ½«·µ»Ø×Ö·û´®“\%”ºÍ“\_”¶ø²»ÊÇ“%”ºÍ“_”¡£
Óм¸ÖÖ·½·¨ÔÚÒ»¸ö×Ö·û´®ÄÚ°üÀ¨ÒýºÅ£º
Ò»¸ö×Ö·û´®ÄÚÓÓ'”¼ÓÒýºÅµÄ“'”¿ÉÒÔ±»Ð´×÷Ϊ“''”¡£
Ò»¸ö×Ö·û´®ÄÚÓÓ"”¼ÓÒýºÅµÄ“"”¿ÉÒÔ±»Ð´×÷Ϊ“""”¡£
Äã¿ÉÒÔ°ÑÒ»¸öתÒå×Ö·û£¨“\”£©·ÅÔÚÒýºÅÇ°Ãæ¡£
Ò»¸ö×Ö·û´®ÄÚÓÓ"”¼ÓÒýºÅµÄ“'”²»ÐèÒªÌØÊâ¶Ô´ý¶øÇÒ²»±Ø±»Öظ´»òתÒ塣ͬÀí£¬Ò»¸ö×Ö·û´®ÄÚÓÓ'”¼ÓÒýºÅµÄÓë“"”Ò²²»ÐèÒªÌØÊâ¶Ô´ý¡£
Ïà¹ØÎĵµ£º
À´Ô´£ºccidnet.com ×÷ÕߣºSabine¡¡ ʱ¼ä£º2006-10-09
ÔÚÊý¾Ý¿â±í¶ªÊ§»òË𻵵ÄÇé¿öÏ£¬±¸·ÝÄãµÄÊý¾Ý¿âÊǺÜÖØÒªµÄ¡£Èç¹û·¢Éúϵͳ±ÀÀ££¬Äã¿Ï¶¨ÏëÄܹ»½«ÄãµÄ±í¾¡¿ÉÄܶªÊ§×îÉÙµÄÊý¾Ý»Ö¸´µ½±ÀÀ£·¢ÉúʱµÄ״̬¡£ÓÐʱ£¬ÕýÊÇMySQL¹ÜÀíÔ±Ôì³ÉÆÆ»µ¡£¹ÜÀíÔ±ÒѾ֪µÀ±íÒÑÆÆ»µ£¬ÓÃÖîÈçvi»òEmacsµÈ±à¼Æ÷ÊÔͼֱ½Ó±à¼ËüÃÇ£¬Õâ¶Ô±í¾ø¶Ô²»ÊǼ ......
1.ÉèÖñäÁ¿
set @x = 2;
»ò:
select @x := max(fields) as max from table;
2.Éú³Éhtml»òxml
mysql -H -uroot -p databaseName Éú³ÉhtmlÎļþ
mysql -x -uroot -p databaseNam ......
#include <stdio.h>
#include <windows.h>
#include <mysql.h>
#define host "localhost"
#define username "root"
#define password "123"
#define database "oa"
MYSQL *conn;
int main()
{
MYSQL_RES *res_set;
MYSQL_ROW row;
unsigned int i,ret;
FILE *fp;
MYSQL_FIELD *field;
......
ת×Ô:http://blog.chinaunix.net/u2/85344/showart_2042280.html
LiunxÏÂÐÞ¸ÄMySQL×Ö·û¼¯£º
1.²éÕÒMySQLµÄcnfÎļþµÄλÖÃ
find / -iname '*.cnf' -print
/usr/share/mysql/my-innodb-heavy-4G.cnf
/usr/share/mysql/my-large.cnf
/usr/share/mysql/my-small.cnf
/usr/share/mysql/my-medium.cnf
/usr/share/mysql ......
1¡¢ÏÂÔØMySQLµÄ°²×°Îļþ
°²×°MySQLÐèÒªÏÂÃæÁ½¸öÎļþ£º
MySQL-server-5.0.46.i386.rpm¡¡¡¡¡¡
MySQL-client-5.0.46.i386.rpm
2¡¢°²×°MySQL
rpmÎļþÊÇRed Hat¹«Ë¾¿ª·¢µÄÈí¼þ°²×°°ü£¬rpm¿ÉÈÃLinuxÔÚ°²×°Èí¼þ°üʱÃâ³ýÐí¶à¸´ÔÓµÄÊÖÐø¡£¸ÃÃüÁîÔÚ°²×°Ê±³£ÓõIJÎÊýÊÇ
ivh
,ÆäÖÐi±íʾ½«°²×°Ö¸¶¨µÄrmpÈí¼þ°ü£¬V±í ......