MySQLÖи÷ÖÖ×ֶεÄÈ¡Öµ·¶Î§
TINYINT
-128 - 127
TINYINT UNSIGNED
0 - 255
SMALLINT
-32768 - 32767
SMALLINT UNSIGNED
0 - 65535
MEDIUMINT
-8388608 - 8388607
MEDIUMINT UNSIGNED
0 - 16777215
INT »ò INTEGER
-2147483648 - 2147483647
INT UNSIGNED »ò INTEGER UNSIGNED
0 - 4294967295
BIGINT
-9223372036854775808 - 9223372036854775807
BIGINT UNSIGNED
0 - 18446744073709551615
FLOAT
-3.402823466E+38 - -1.175494351E-38
0
1.175494351E-38 - 3.402823466E+38
DOUBLE »ò DOUBLE PRECISION »ò REAL
-1.7976931348623157E+308 - -2.2250738585072014E-308
0
2.2250738585072014E-308 - 1.7976931348623157E+308
DECIMAL[(M,[D])] »ò NUMERIC(M,D)
ÓÉM(Õû¸öÊý×ֵij¤¶È,°üÀ¨Ð¡Êýµã,СÊýµã×ó±ßµÄλÊý,СÊýµãÓұߵÄλÊý,µ«²»°üÀ¨¸ººÅ)ºÍD(СÊýµãÓұߵÄλÊý)À´¾ö¶¨,MȱʡΪ10,DȱʡΪ0
DATE
1000-01-01 - 9999-12-31
DATETIME
1000-01-01 00:00:00 - 9999-12-31 23:59:59
TIMESTAMP
1970-01-01 00:00:00 - 2037ÄêµÄijÌì(¾ßÌåÊÇÄÄÌìÎÒÒ²²»ÖªµÀ,ºÇºÇ)
TIME
-838:59:59′ to 838:59:59
YEAR[(2|4)]
ȱʡΪ4λ¸ñʽ,4λ¸ñʽȡֵ·¶Î§Îª1901 - 2155,0000,2λ¸ñʽȡֵ·¶Î§Îª70-69(1970-2069)
CHAR(M) [BINARY] »ò NCHAR(M) [BINARY]
MµÄ·¶Î§Îª1 - 255,Èç¹ûûÓÐBINARYÏî,Ôò²»·Ö´óСд,NCHAR±íʾʹÓÃȱʡµÄ×Ö·û¼¯.ÔÚÊý¾Ý¿âÖÐÒÔ¿Õ¸ñ²¹×ã,µ«ÔÚÈ¡³öÀ´Ê±Ä©Î²µÄ¿Õ¸ñ½«×Ô¶¯È¥µô.
[NATIONAL] VARCHAR(M) [BINARY]
MµÄ·¶Î§Îª1 - 255.ÔÚÊý¾Ý¿âÖÐĩβµÄ¿Õ¸ñ½«×Ô¶¯È¥µô.
TINYBLOB »ò TINYTEXT
255(2^8-1)¸ö×Ö·û
BLOB »ò TEXT
65535(2^16-1)¸ö×Ö·û
MEDIUMBLOB »ò MEDIUMTEXT
16777215 (2^24-1)¸ö×Ö·û
LONGBLOB »ò LONGTEXT
4294967295 (2^32-1)¸ö×Ö·û
ENUM(’value1′,’value2′,…)
¿ÉÒÔ×ܹ²ÓÐ65535¸ö²»Í¬µÄÖµ
SET(’value1′,’value2′,…)
×î¶àÓÐ64¸ö³ÉÔ±
Ïà¹ØÎĵµ£º
MySQL5.X¶¼ÒѾ·¢²¼ºÃ¾ÃÁË£¬µ«ÊÇ»¹ÓкܶàÈËÈÏΪMySQLÊDz»Ö§³ÖÊÂÎñ´¦ÀíµÄ£¬Õâ²»µÃ²»¹ÖËûÃÇÊǹª¹ÑÎŵģ¬Æäʵ£¬Ö»ÒªÄãµÄMySQL°æ±¾
Ö§³ÖBDB»òInnoDB±íÀàÐÍ£¬ÄÇôÄãµÄMySQL¾Í¾ßÓÐÊÂÎñ´¦ÀíµÄÄÜÁ¦¡£ÕâÀïÃ棬ÓÖÒÔInnoDB±íÀàÐÍÓõÄ×î¶à£¬ËäÈ»ºóÀ´·¢ÉúÁËÖîÈçOracleÊÕ
¹ºInnoDBµÈÁîMySQL²»Ë¬µÄÊÂÇ飬µ«ÄÇЩÉÌÒµÉϵĶ·ÕùÓë¼¼ÊõÎÞ¹ ......
·Ç³£³£Óõģº¾µäµÄMYSQLÓï¾ä…… php¿ªÔ´
ÕâÕæÊÇÒ»¸öºÃ¶«Î÷£ºÑ§Ï°ºÃÁ˺ÜÊÜÓõÄŶ……
SQL·ÖÀࣺ
DDL—Êý¾Ý¶¨ÒåÓïÑÔ(Create£¬Alter£¬Drop£¬DECLARE)
DML—Êý¾Ý²Ù×ÝÓïÑÔ(Select£¬Delete£¬Update£¬Insert)
DCL—Êý¾Ý¿ØÖÆÓïÑÔ(GRANT£¬REVOKE£¬COMMIT£¬ROLLBACK)php¿ªÔ´
Ê×ÏÈ,¼òÒ ......
¸ÃÁ¬½Ó·½Ê½²ÉÓÃRPCÀ´·µ»ØÊý¾Ý¿â²éѯ½á¹û¡£
1.Ê×ÏÈÊÇ´´½¨ÆÕͨµÄGWT-EXT¹¤³Ì¡£¿ÉÒԲο¼1http://www.ibm.com/developerworks/cn/java/j-lo-gwtext1/#resources
ϵÁÐ Èë ÃÅ ½Ì³Ì¡£¾ßÌåͨѶ¹ý³Ì·þÎñÒ²¿É²Î¿¼ÉÏÊöµÄ×îºó²¿·Ö˵Ã÷¡£
2. ½ÓÏÂÀ´¾ÍÊÇÒª´´½¨GWT Remote ServiceÁË£¬ÔÚÔÓй¤³ÌÉÏnew-&g ......
MySQL¿ÉÒÔΪ²»Í¬µÄÓû§·ÖÅäÑϸñµÄ¡¢¸´ÔÓµÄȨÏÞ¡£ÕâЩ²Ù×÷´ó¶à¶¼¿ÉÒÔÓÃSQLÖ¸ÁîGrant£¨·ÖÅäȨÏÞ£©ºÍRevoke£¨»ØÊÕȨÏÞ£©À´ÊµÏÖ¡£ Grant¿ÉÒÔ°ÑÖ¸¶¨µÄȨÏÞ·ÖÅä¸øÌض¨µÄÓû§£¬Èç¹ûÕâ¸öÓû§²»´æÔÚ£¬Ôò»á´´½¨Ò»¸öÓû§¡£
Grant ³£Óøñʽ:
grant ȨÏÞ1,ȨÏÞ2,…ȨÏÞn on Êý¾Ý¿âÃû³Æ.±íÃû³Æ to Óû§Ãû@Óû§µØÖ· ide ......
±¾ÎÄÁ´½Óhttp://www.chysoft.net/files/article_234.htm ¸ü¶à×ÊѶÇë½øÈëwww.chysoft.net
mysqlµÄÊý¾Ý´¢´æĿ¼ÔÚmysqlµÄÅäÖÃÎļþmy.iniÎļþÉèÖ㬸ñʽÈçÏ£º
# Uncomment the following rows if you move the MySQL distribution to another
# location
basedir = d:/cyoa/mysql_cy/
datadir = d:/cyoa/mysq ......