mysqlÂÒÂëÎÊÌâ
´´½¨µÄһЩ±í»á³öÏÖÕâÑùµÄÎÊÌ⣺ӢÎIJåÈëµ½±íÖÐûÓÐÈκÎÎÊÌâ¡£µ«ÊDzåÈëÖÐÎĵÄʱºò¾Í³öÏÖ Data truncation: Data too long for column 'name' at row 1 ÀàËÆµÄÎÊÌâ¡£
mysqlÄܰÑÓ¢ÎÄ×ֶβåÈçÊý¾Ý¿âÁË¡¡µ±ÎÒÊäÈëÖÐÎÄʱËû¾Í³öÏÖ×Ö¶ÎData truncation: Data too long for column 'name' at row 1
ÎÒʹÓÃÅóÓѵÄÕâ¸ö·½·¨£º(1)ÐÞ¸Ä $mysql_path$\my.ini(MySQL Server Instance Configuration Îļþ)
ÉèÖÃdefault-character-set=gbk(×¢Ò⣬ÓÐ2´¦)
(2)ÐÞ¸ÄdataĿ¼ÖÐÏàÓ¦Êý¾Ý¿âĿ¼ÏµÄdb.optÅäÖÃÎļþ
default-character-set=gbk
default-collation=gbk_chinese_ci
ÖØÆðmysql,¾ÍokÁË.
(×¢£ºÈç¹û±íÊÇÔÚûÓиÄ֮ǰµÄ£¬Ò»¶¨ÒªÖØÐ´´½¨£¬·ñÔò±í»¹ÊÇÒÔǰµÄ±àÂ룬»¹ÊDz»ÄܲåÈë
ÖÐÎÄÊý¾Ý£©
Ïà¹ØÎĵµ£º
mssql,oracleÖÐ
test񡜧
1 5 abc
2 6 bcd
1 7 ade
2 8 adc
select a,b,c
from(
select a,b,c
,row_number()over(partition by a order by b desc) rn
from test
) &nb ......
Ò»¡¢Êýѧº¯Êý
ABS(x) ·µ»ØxµÄ¾ø¶ÔÖµ
BIN(x)¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡·µ»ØxµÄ¶þ½øÖÆ£¨OCT·µ»Ø°Ë½øÖÆ£¬HEX·µ»ØÊ®Áù½øÖÆ£©
CEILING(x)   ......
ÔÚ×ÀÃæÉÏн¨Ò»¸ö¿ÕµÄÎı¾Îļþmysql.txt,ÖØÃüÃûΪmysql.udl,Ë«»÷Õâ¸ömysql.udlÎļþ£¬´ò¿ª“Êý¾Ý¿âÁ¬½ÓÊôÐÔ”¶Ô»°¿ò£¬ÔÚ“Ìṩ³ÌÐò”ҳѡÔñ”Micrsoft Ole DB Provider for ODBC Drivers“£¬ µã»÷ÏÂÒ»²½£¬ÔÚ“Á¬½Ó”Ò³µÄ,"Ö¸¶¨Êý¾ÝÔ´"Ñ¡Ôñ"ʹÓÃÁ¬½Ó×Ö·û´®",µã» ......