<![CDATA[Snooda]]> http://www.njmir2.com/index zh-cn http://www.njmir2.com/read/340 <![CDATA[mysql的varchar和char长度的含义(中文长度Q]]> snooda <admin@snooda.com> Mon, 07 Dec 2015 11:22:14 +0000 http://www.njmir2.com/read/340

    可以通过mysql官方文档来看Q?br/>    http://dev.mysql.com/doc/refman/5.0/en/char.html
    

The CHAR and VARCHAR types are declared with a length that indicates the maximum number of characters you want to store. For example, CHAR(30) can hold up to 30 characters.

    x持的?0个字W(charactersQ,而不?0字节QbytesQ?br/>
    l测试,l果也是W合文档的。varchar(30)可以存储30个汉?br/>

    附加问题Q如果传入了出长度的内容,会有什么结果?br/>
If strict SQL mode is not enabled and you assign a value to a CHAR or VARCHAR column that exceeds the column's maximum length, the value is truncated to fit and a warning is generated.

     文档中提到。默认情况下会截断而不q回错误。如果需要返回错误,需要开启strict mode











Tags - , ]]>
ɫֻ߹ۿ,ɫӰԺ,ɫӰվ_þõӰ ɫ ɫ˸ɫ ɫ˸ ɫ ɫϴ ɫߣߣ ֻƬ ŷɫͼ Ƶ_˲_Ƶ_Ƶ߹ۿ ձëƬ_ձƵ߹ۿ_ձɫ 㽶97ֻƵ У԰Ƶ Ƶ߹ۿ ɫ͵͵˵a vɫϰƵ߹˴߽Ʒ97ӰԺ ձ_AVƵ,˵ö ɫ_ɫũ_㽶ò_찮 ɫۺŷAv,ɫò,ɫۺվ,ۺϾ _׵ɫ_ȥҲ_˲777ɫӰǿ ɫԭվӰԺ,ɫӰԺ,ɫԭվ߹ۿ,ҹҹˬ찡 Ӱ,ӰԺ,Ӱ,޶Ӱ˳վ߹ۿ 츣Ƶվ_ձӰƼҿ_Ӱȷ ԻҰ,ձavŮ,Ƶվ,avŮDzԾ ŷ˵Ӱ ŷav ŷaƬ ŷһƬ ˵ Ƶ,ҺŮѧõͬ,18mmСϷ Ըкд,ݺ³ҳ,ŷavŮ԰,洲Ϸ ŮƵƵȫƵ, 99reþþƷ,AëƬ,þ99ȴ㽶 һaƬƵۿ,ѹһav Ƭ,ձһػƴƬɫ ŮɹС97ɫͼƬӰԺձһۺ һػƴƬ,˼˼99ȾþþƷ6ɫɫۺ ŷAv_þþƷ߹ۿ_߹ۿ_ŷɫվ ɫ ɫۺ ɫ ñ ɫ ҹҹ2017,avƷ,2017,ݺ2017ո ŷɫƵ_100ձ_ļӰ ɫƵ91͵IJʿ4480ײӰԺ,ɫվ,ɫС˵,ɫ ɫ____ñ_ɫۺ ߹ۿ,ߣ㽶ѸӰ,ɵav,Ů Ů 7 ɫŷ޺ݺݰ ۺ 㽶ݺԻݺݰӰԺɫԭַɫ͵͵ѹƵ 尮ɫӰ߹ۿ9 7߹Ƶѹۿ ͼ Ƶ ɫ av2017ɫ ṩġձŷ߹ۿ!ҹҹbƵ ŷպƵ,պձ,պ,ŷպv ¶ŷƵŷӰԺҹƬձƬ ɫɫӰԺɫϰվ97ɬݰ߹ۿպaרٱƵ .ձƵվ,¸ר.߹ۿ 긾Ůļ,99ƷƵ,97˿ ӻcc,͵ŮѵĴ鷿, ,avȫ ۺ,2017ҹҹž,³ҹҹžƵ ĸƵ ҹ͵b ҾŮʦ԰ ͵Ůͼ 525޲,ʳavӰ,av,϶ӵ ǻ͸,22ۺ,ձŮͼ, ŮŮƵ͵ֱүӰԺ͵ŮС ɫƵǿŮ˾ӰsҲҲȥ ǿӰ,Ѵ󼦰Ͳù,˹dhaƷ Ƶavɫַ,ǿŮ߳,52av˵ ž߹ۿ-໽ӰԺ-Ҫ³,Ҫ³ӰԺ ձ_AVƵ,˵ö avëƬ߿_ձһػƴƬ_ձëƬƵۿ_vƬվ ŷպƵ,պձ,պ,ŷպv ŷɫƬۺϽӰڲѹۿװɫ òȾòƵ,òȾò,һƬŷͼݺߣ,ɫ Ӱַȫ-|Ӱȫ|ַ,Qvod,첥Ӱ ŷƽɫӰǩ,Ů,㽶Ƶ ˸ɫۺ,㽶ӰԺ߹ۿ,°ȥҲ 330DV_ձ츾ɫƵ_ձƵվwwwɫ_ձƵѹۿ ɫþõӰ,ߣߣߣ,ձAV߹ۿ,ߣۺ ŷؼƬ2017,ŷߵӰ,Ӱ,Ͱ͵Ӱ 㽶Ƶ߲žò,ӰӲƷ 91Ƶ_-þþƷƵ߿15_߲Ƶ avҳ,˼ĶŮͼ,2016ݺ°汾,av ȥɾȥ_ֲ޳ӰԺ_˳ɵӰ߹ۿ ŷavƬ߹ۿɫۺۺ ŷ ɫۺͼ 㽶ײ520,ű,ŷ󵨺ڱ,㽶˾òav av ŷӰ ԻɫƵ aƵ Ůѧ ĸƵ ҹ͵b ҾŮʦ԰ ͵Ůͼ ȥ_Ҳ_anquye_ҲȥӰ_www.ȥҲ.comӰԺ ɫ-www.ɫС,ݺݸ,ݺ_,þۺ,Ҫߣ,Ҫɫۺ ɫۺŷAv,ɫò,ɫۺվ,ۺϾ ձƵѹۿ,ձ߶,av,һavѲ ŷAV_AVƵ,˵ö_ һۺ69,ҰһDVD2 ձ߼ձһ Ƶѹۿ Ƶ߹ۿ ߲Źۿ ۺͼ͵777Ӱߣ,avӰȷþҹӰԺ ,,ñ,ɫۺ,ŷԽӰ Բ_Sɫ_ŮѸëƬƵ òݲѹۿ ݾþðþ òƵԴۿ ԻҰ,ձavŮ,Ƶվ,avŮDzԾ ž_žþ99re߲_žӰԺԺ պһëƬŷһӰ_߲˳Ƶ͵Sɫ ͵Ůѧϴ Ƶ߹ۿƵ ɫ ߹ۿ_žž߲_žžƵ_žžƵ߹ۿ 쿴Ƭ ɫۺۺ С˵ ŷ 쿴Ӱ 񳲵ݺݸ߹ۿӰԺ8ӰӸӰԺ ߿ձav ձav߹ۿ AVվ Ů 4ɫ26߹ۿ-777ɫӰǿdƵվ -໰žƵ-ߣϣ-ݺƵ ѵӰ,µӰ,Ӱַ,첥Ӱ,Ӱ,첥Ӱ ëƬ_ձһػƴƬ_ձëƬƵۿ_vƬվ dvdƵŷ,,С˵걾Ƶ2ѹۿ ӰȷԴ_ȷӰӰ_AVӰ߹ۿ - ߣߣԴ_ŷɫվ òԴվ2,òݸȶԴվ,ɫվ ŮDZ͵ͼ ͵ŮС ŷɫͼ͵ǿ ɫƵ ˵Ӱ ɫ,Ƶ߹ۿ aĻòۺվѼtvһɫ͵͵ av糡,òƵ,պ90rtysͼƬ,ձӰ 㽶168,ϴ˯,ݺݸŷ2016° Ůʿ,ձʿŮ,ʿƷջ,Ըлʿ, ŷɫƬ㽹Ƶݹ2018ŷv Ұ,Ծavʲô,罿19¥ŮĶ Ӱ,ӰӺ,Ӱ,վ,777Ӱӵɫ,777ӰԺ ɫ ۺվ 90Ů,»԰ͼƬ 񳲵ݺݸ߹ۿӰԺ8ӰӸӰԺ ɫƬɫѾž˴㽹СϵӰԺ㽶 ݺ_ݺݲ_ݺɫ_ݺݲ_ݺ_ݺݰ__㽶Ƶ 㽶Ӱ 㽶 ˴㽶 ˴㽶ž99㽶Ƶ _Ӱ_777Ӱ_99þƵ ո 㽶-òӰԺոɳ100ѹۿƵ ߹ۿ_͸ȥ_˲ٱ_ȥ ȥ лۺͼƬͼƬרþ߹ ŷAV_AVƵ,˵ö_ žþðƵ_žþ_ӰԺƵ ԰777ɫԭ˾Ѹs2019Ѽa ߣһߣ,,ɫ,޳˵Ӱ,Ƶվ߹ۿ ëͼƬ ͵IJ, - AV,뿴Ůë Ůʿ,ձʿŮ,ʿƷջ,Ըлʿ, һĻ,DVDֻ߿,ҰձAV ɫ޼ӰԺ!ҳþòƵ_þòƵ_þò߹ۿ 㽶˾ò˸,˼˼99reƵ,˴㽶þ ɫɫ߹ۿ쿴wwwþۺϾþðcomžҹҹˬ ҪɱƸƻӰƵ߹ۿӰԺ 525޲,ʳavӰ,av,϶ӵ f2ݴ㽶9999þðɫƵvƬպŷĻ ձav߹ۿ_av_avձ_Ƭ 츣Ƶվ_ձӰƼҿ_Ӱȷ ŷ ,,ŮƵƵȫ 㽶Ӱ 㽶 ˴㽶 ˴㽶ž99㽶Ƶ ɫݺݰȥ,777ӰԺɫɫ,ӰӺ,׵ֻ߹ۿ 330DV_ձ츾ɫƵ_ձƵվwwwɫ_ձƵѹۿ ˿,㽶Ƶ,ݺƺݺ,ɫavʽ avëƬ߿_ձһػƴƬ_ձëƬƵۿ ߿ѹۿձAv,ŷav߹ۿ,Ұ˿AV߹ۿ ߿ձav ձav߹ۿ AVվ Ů av۹_avƵ,˵ö! òݾòƵʱӾòѹۿòݱ ŷŮ԰ͼ Ըջ Ů ũɫۺһҳ ̨ԭþѹۿӰԺҲ CaoPornƵСƵŷĻѵַ ŷɫƵ_³³ֻƵ_žžžվ_ ò ѹۿ žž ò 㽶 aò 㽶ò ȥ_Ҳ_anquye_ҲȥӰ_www.ȥҲ.comӰԺ Ұ⻧,ŷŮ,ڹƵѹƵ, AV ŷ ͨ _ŷͼƬƵһ_ŷ Ʒ 㽶ݺ,㽶Ƶ,㽶վ,Ƶ2019 ɫ,10AV,ձ߹ۿavվ,һɫַĵ ɫۺŷav_ŷAv_ŷ_ŷ˕_ŷȺ ɫۺŷAv,ɫò,ɫۺվ,ۺϾ ŷӰԺ,ȫ,Ӱ,ŷƵ,ŷӰԺ ,Ƶ,Ƶ,Ƶ,Ƶ,ԤƬ ŷ˳Ƶ,ž99㽶Ƶ,ӰԺ_ӰԺ