+3.00 –1.00乘以号怎么打90进行转换

品 牌:西门子触摸屏,西门子连接器,西门子软启动器
价 格:1.00 /
供 应 地:上海上海市
包装说明:齐全
产品规格:全新原装
运输说明:邮寄
交货说明:款到发货
发布日期:
联系人QQ:
详细说明Explain
6ED–0BE&&西门子LOGO&&西门子PLC模块&&西门子电缆接头
联 & 系 & 人: 黄勇《黄工》 & 24小时联系手机: &
& & & & & & & & & & & & & &&
直线销售电话: 021- & & 在 线 商 务 QQ: &&
上海赞国公司在经营活动中精益求精,具备如下业务优势:
&SIEMENS 可编程控制器
1、 SIMATIC S7 系列PLC:S7-200、S7-1200、S7-300、S7-400、ET-200
2、 逻辑控制模块 LOGO!230RC、230RCO、230RCL、24RC、24RCL等
3、 SITOP直流电源 24V DC 1.3A、2.5A、3A、5A、10A、20A、40A可并联.
4、HMI &触摸屏TD200 TD400C K-TP OP177 TP177,MP277 MP377,
& SIEMENS 交、直流传动装置
1、 交流变频器 MICROMASTER系列:MM420、MM430、MM440、G110、G120.
MIDASTER系列:MDV
2、全数字直流调速装置 6RA23、6RA24、6RA28、6RA70、6SE70系列
SIEMENS 数控 伺服
SINUMERIK:801、802S 、802D、802D SL、810D、840D、611U、S120
规  格:SIEMENS;全新原装
数  量:大量的库存、几乎所有型号
货  期:现货当日发、订货4-6周;
我们的宗旨:诚信为本、薄利多销、长期合作。
郑重承诺!西门子保内全新原装产品!质保一年!(非人为不保)!一年内因本身质量问题免费更换新产品,不收取任何费用,
我公司大量现货供应,价格优势,品质保证,德国原装进口
电子商务分为:ABC、B2B、B2C、C2C、B2M、M2C、B2A(即B2G)、C2A(即C2G)、O2O九类电子商务模式等等。
ABC模式=Agents to Business to Consumer
ABC模式是新型电子商务模式的一种,被誉为继阿里巴巴b2b模式、京电子商务代表
电子商务代表
东商城b2c模式、淘宝c2c模式之后电子商务界的第四大模式。是由代理商(Agents)、商家(Business)和消费者(Consumer)共同搭建的集生产、经营、消费为一体的电子商务平台。三者之间可以转化。大家相互服务,相互支持,你中有我,我中有你,真正形成一个利益共同体。
B2B = Business to Business.
商家(泛指企业)对商家的电子商务,即企业与企业之间通过互联网进行产品、服务及信息的交换。通俗的说法是指进行电子商务交易的供需双方都是商家(或 企业、公司),她(他)们使用了Internet的技术或各种商务网络平台,完成商务交易的过程。这些过程包括:发布供求信息,订货及确认订货,支付过程 及票据的签发、传送和接收,确定配送方案并监控配送过程等。有时写作B to B,但为了简便干脆用其谐音B2B(2即two)。
B2C = Business to Customer
B2C模式是我国最早产生的电子商务模式,以8848网上商城正式运营为标志,如今的B2C电子商务网站非常的多,比较大型的有京东商城、哈妹网等。
C2C = Consumer to Consumer
C2C同B2B、B2C一样,都是电子商务的几种模式之一。不同的是C2C是用户对用户的模式,C2C商务平台就是通过为买卖双方提供一个在线交易平台,使卖方可以主动提供商品上网拍卖,而买方可以自行选择商品进行竞价。
B2M = Business to Manager
B2M是相对于B2B、B2C、C2C的电子商务模式而言,是一种全新的电子商务模式。而这种电子商务相对于以上三种有着本质的不同,其根本的区别在于目标客户群的性质不同,前三者的目标客户群都是作为一种消费者的身份出现,而B2M所针对的客户群是该企业或者该产品的销售者或者为其工作者,而不是最终消费者。
M2C = Manager to Consumer
M2C是针对于B2M的电子商务模 式而出现的延伸概念。B2M环节中,企业通过网络平台发布该企业的产品或者服务,职业经理人通过网络获取该企业的产品或者服务信息,并且为该企业提供产品 销售或者提供企业服务,企业通过经理人的服务达到销售产品或者获得服务的目的。
O2O=Online to Offline
O2O是近年来新兴起的一种电子商务新商业模式,即将线下商务的机会与互联网结合在了一起,让互联网成为线下交易的前台。这样线下服务就可以用线上来揽客,消费者可以用线上来筛选服务,还有成交可以在线结算,很快达到规模。该模式最重要的特点是:推广效果可查,每笔交易可跟踪。
产品远销:
1.华北地区:北京、天津、河北、山西、内蒙古(5个省、市、区)。
2.东北地区:辽宁、吉林、黑龙江、大连(4个省、市)。
3.华东地区:上海、江苏、浙江、安徽、福建、江西、山东、宁波、夏门、青岛(10个省、市)。
4.中南地区:河南、湖北、湖南、广东、广西、海南、深圳(7个省、市)。
5.西南地区:重庆、四川、贵州、云南、西藏(5个省、市)。
6.西北地区:陕西、甘肃、青海、宁夏、新疆(5个省、区)
LOGO!12/24
RC*&& 8DI(2AI)入/4出继电器,电源电压24VDC,有模拟量输入
LOGO!24&&& 8DI(2AI)入/4出晶体管,电源电压24VDC
LOGO!24RC&&& 8入4出继电器,电源电压24VDC
LOGO!230RC&&& 8入4出继电器,电源电压220VAC
LOGO!12/24
RCo&& 8DI(2AI)入/4出继电器,电源电压24VDC,有模拟量输入
LOGO!24o&&& 8DI(2AI)入/4出晶体管,电源电压24VDC
LOGO!24RCo(AC)&&& 8入4出继电器,电源电压24VDC
LOGO!230RCo&&&&&& 8入4出继电器,电源电压220VAC
LOGO!DM8 12/24RC
LOGO!DM8 24
LOGO!DM8 24R
LOGO!DM8 230R
LOGO!DM16 24
LOGO!DM16 24R
LOGO!DM16 230R
LOGO!AM2 PT100
LOGO!AM2 AQ
程序模块(棕色卡)
卖家名片Cards
联系人:黄先生
邮箱:@qq.cpm
地址:上海上海市上海市松江区思贤路1855弄91号
电话:021-
传真:021-
在线询盘/留言Online Inquiry
*您的姓名:
*联系手机:
固话电话:
所在单位:
需求数量:
*咨询内容:
我想了解:《6ED–0BE&&西门子LOGO&&西门子PLC模块&&西门子电缆接头》的详细信息.请商家尽快与我联系。
免责声明:交易有风险,请谨慎交易,以免因此造成自身的损失,本站所展示的信息均由企业自行提供,内容的真实性、准确性和合法性由发布企业负责。本站对此不承担任何保证责任。
商国互联供应商 品质首选
上海赞国自动化科技有限公司
会员级别:认证类型:企业认证企业证件:已通过企业认证 认证公司:上海赞国自动化科技有限公司
主营产品:西门子PLC模块 西门子触摸屏 西门子变频器 西门子直流调速器 西门子软启动器 西门子数控系统 西门子电源模块 西门子电缆 西门子接头 西门子网卡 西门子编程软件 西门子工控机
公司所在地:上海上海市
联系人:黄先生
该供应商的其他产品
你可能感兴趣Batch PSD to JPG – PSD to JPG 格式转换
Batch PSD to JPG – PSD to JPG 格式转换
0.00 / 5 5
当然,如果你配置了高科技的图片浏览器(比如 ,比如 ACDSee 等等) 那么 Batch PSD to JPG 是不需要你的。
下载(316KB):
| 更新下载链接:
# sfufoet:为啥今天不发游戏捏?因为今天是 #080808。嘛是 #080808?不是个灰度值?不是滴,是由发起的一项活动,。
火星链接几个:
有黑莓的不妨:
(上个链接的补充)
最后强烈推荐科学松鼠会的系列有关奥运的科普文章。
喜欢这篇文章?
按分类查看文章:
大家都在讨论些什么
: 安卓3颗按键一直完爆苹果啊。。。。: 这不错,: woccccccccccccc
“会在屏幕上显示一个完全没有什么卵用的图片”
啥图片?: 咦,这个问题比较奇怪: 稍等,还有几个人没给我地址,在等两天不给地址就换人送。然后一起发出来: 作为一个觉得状态栏是个愚蠢的设计的人......: 共享下吧兄弟
最热门标签
传说中的小众软件 这里分享免费、小巧、实用、有趣、绿色的软件。
个人 blog 转载时请遵循 “署名-非商业性使用-相同方式共享” 的创作共用协议;
商业网站或未授权媒体不得复制本站内容。2010 ASLA Annual Meeting & Expo
Education Sessions
90-minute education sessions will be offered from Friday through
Monday. Each
session is 1.5 professional development hours (PDH). Unless otherwise noted,
the instruction level of the education sessions will be intermediate or
advanced, appropriate for an experienced, professional audience. The ASLA Fund
supports ASLA research, library, archives, awards, and professional education
Sponsored by PlayCore
Van Valkenburgh Associates (MVVA) is renowned for working with a range of
complicated sites. From cities and universities to corporations and private
clients, a commonality among MVVA projects is integrating a site’s layered
history and dynamic nature with aggressive ecological strategies and a love of
plants. MVVA grapples with challenges from soil toxicity to coordination with
old and new infrastructure and successful integration into urban fabric. This
session will present case studies on turning such site limitations into
creative opportunities.
Objectives
Examine how program, site,
and infrastructure constraints can be made into assets
Learn approaches to
designing spaces that cater to a wide range of age groups
Learn how ecology and
urban design create changing, growing parks
Moderator: Ethan Carr, FASLA, University of
Virginia; Featured Speakers: Michael Van Valkenburgh, FASLA, Laura
Solano, ASLA, and Matthew Urbanski, Michael Van Valkenburgh Associates, Inc.
1.5 PDH, Registered with LACES/HSW, GBCI, NY/HSW, FL
architects have long put into practice the principle that excellence in the
planning and design of transportation corridors is absolutely essential to the
comfort and amenity of the places where we live, work, and play. Early this
year, the Obama Administration acknowledged the need to factor livability into
its criteria for transportation projects. This session will explore the various
ways that transportation factors into sustainability, economic development, the
environment, and creation of great spaces for our communities.
Objectives
Learn how transportation policy
translates into landscape architecture projects
Discover how sustainable design
principles apply to federal transportation projects
Explore case studies of landscape
architects shaping transportation policy
Speakers: Roxanne
Blackwell, Esq.,
American Society of Landscape A Polly Trottenberg, U. S. DOT;
Angela Dye,
Dye Design Inc.; Jim Donovan, FASLA,
Broadreach Planning & Design
1.5 PDH, Registered with LACES/HSW, GBCI, AICP, AIA, NY/HSW, FL
many times have you seen a site profile that ends up requiring 25 to 70 percent
of a full-site water budget for your client? Did you seriously consider a
self-sustainable project that includes an operationally efficient irrigation
system? This session will address the challenge of identifying and implementing
efficient irrigation systems involving emerging technologies and up-front,
client-involved project planning and engineering.
Objectives
Know when the water budget is over-extended on a
See the potential for efficient water
irrigation.
Understand the client’s objectives and how to
work within that water budget
Featured Speakers: Chris Wright, Ewing,Linda Maley, Atlantis Water MChris Dimmick, Rain Bird C
Darin Brasch, EZ F Moderator: Nate Hines, Hines Irrigation Consultants
1.5 PDH, Registered with LACES/HSW, GBCI
architects, architects, planners, and engineers have significant roles in
planning, designing, and advocating for transportation corridors that meet the
mobility needs of all users (Complete Streets). This session focuses on proven and
conceptual Complete Streets design and planning in which systems occupy public
spaces that also serve social, recreational, and ecological needs. The panel
will explore planning and implementation examples that employ Complete Streets
concepts for more sustainable, livable communities.
Objectives
Understand Complete Streets in
urban contexts and others, such as national forests
Learn how national and state
legislation is advocating Complete Streets at all levels
Integrate sustainable and other
green concepts with Complete Streets principles
Speakers: Keith
Robinson, ASLA,
Gyorgyfalvy, ASLA, United States Forest S
Tracy Newsome,
City of C Philip Erickson,
AIA, Community
Design + Architecture
1.5 PDH, Registered with LACES/HSW, GBCI, AICP, AIA, NY/HSW, FL
National Capital Planning Commission,
National Park Service
As America’s
capital, the strength of Washington lies with its cultural venues: architecture
and open spaces, vibrant walkable neighborhoods, and public transit
infrastructure. Coordinated planning and investment and sustainable design are
essential to ensure that central Washington serves as a model for the nation
and maintains its rank as a top world-class capital. This panel of four
professionals working to shape the city will discuss with attendees how the
federal and district governments are working to improve the city’s natural and
built environment at all scales.
Objectives
Learn how new federal and city
initiatives are taking sustainability mainstream
Find out how three city and
federal plans, on a range of scales, are shaping a great city
Understand how several
jurisdictions can collaborate to lead change on the ground
Speakers: Elizabeth Miller, ASLA, AICP, and Diane
Sullivan, National Capital Planning C
Susan Spain,
ASLA, National
Park S Patricia Zingsheim, AIA,
District of Columbia, Office of Planning
1.5 PDH, Registered with LACES/HSW, GBCI, AICP, AIA, NY/HSW, FL
expansion often comes at the expense of green space, and there is a need to
maximize the respite provided by the remaining outdoor areas. Currently, LEED
accommodates density through green roofs and other strategies that may not
improve outdoor respite. USGBC, the Green Guide for health care, and SITES are
working to assure areas of respite are incorporated into healthcare facility
design. Case studies for two LEED hospital projects will relate the
effectiveness of existing respite functions to the proposed criteria, potential
branding, and revenue benefits.
Objectives
Learn GGHC and Sustainable Sites
Initiative criteria for therapeutic environments
Understand the impact of GGHC and
SITES criteria on healing environments
Understand the branding and
revenue benefits of providing quality respite space
Featured Speakers: Trish Beckjord, ASLA, Clare Cooper Marcus, University of California,
B Charles Stevenson, Northwest Community Hospital
1.5 PDH, Registered with LACES/HSW, GBCI, AIA, NY/HSW, FL
formation of two new major urban parks in Kentucky and Alabama are recent
additions to a collection of parks of more than 1,000 acres. Collectively,
these parks are defining a new class of public open space in the U.S. Not since
the turn of the 20th century have so many large parks been created. This
session focuses on the challenges and advantages of creating major parks from
the owners’ and consultants’ points of view. Park planning themes include the client’s
role in reshaping park design, macro sustainability, and &parks without
borders.&Become familiar with two new
major urban parks and their master plans
Objectives
Become familiar with two new
major urban parks and their master plans
Hear the regulatory, funding,
programming, and startup challenges and opportunities
Learn about &parks without
borders& and strategies used to fit these parks into context
Speakers: Eric
Tamulonis ASLA,
LEED AP, Wallace Roberts & T
Dan Jones,
21st Century Parks, Inc.; David Dionne, Red
Mountain Greenway and Recreational Area Commission
1.5 PDH, Registered with LACES/HSW, GBCI, AICP, AIA
Introducing
a new book, this session presenter will open your eyes to the invisible world
of spontaneous urban vegetation and its ecological significance and its esthetic
potential. Especially in economically stressed urban areas, novel, cosmopolitan
ecosystems are becoming increasingly significant. The presenter’s ultimate aim
is to change people’s attitudes about this increasingly abundant and important
group of plants, which perform important ecological functions with minimal
input of resources not already available on-site.
Objectives
Learn about the cultural and
natural history of spontaneously growing urban plants
Understand urbanization as a
major trend leading to increasingly significant ecosystems
Appreciate that this vegetation
can be considered sustainable
Speaker: Peter
Del Tredici, Arnold Arboretum and Harvard GSD
1.5 PDH, Registered with LACES/HSW, GBCI, NY/HSW, FL
staff is difficult. Losing knowledge is untenable. And yet this critical asset
is one of the most overlooked. Failure to protect strategic assets is a
competitive disadvantage and creates intolerable inefficiencies in finding
corporate/project information and organizing knowledge. Never face re-inventing
a design solution again. This program will focus on how any firm can strengthen
the way it acquires, captures, stores/retrieves, shares, and leverages
knowledge to enhance creativity, effectiveness, staff and client satisfaction,
and competitive advantage.
Objectives
Know the measurable benefits of
knowledge management
Learn specific, immediately
applicable techniques and tools to leverage knowledge
Learn how other firms have been
successful in managing knowledge
Featured Speakers: Pamela
Britton, The
Knowledge E Greg
Ochis, Affiliate ASLA,
Hyatt Studio, Valley Crest D John
Soter, Zweig
W Peter Adams, Community
Engagement Associates
1.5 PDH, Registered with LACES/ non-HSW, AICP, FL
Children’s
contact with nature is critical for their healthy development. Research shows
that green environments support attentive functions, cooperative behavior, and
physical health. But the lack of quality outdoor environments prevents children
and families from receiving those health benefits. This session will discuss
the latest research on the effects of contact with nature and the critical role
landscape architects play in counteracting ADD and sedentary habits.
Participants will understand how to create natural environments as a daily
experience for children and families.
Objectives
Understand the concern
with children’s lack of engagement with and family fear of nature
Discover a new niche
market for landscape architects to apply their creative talents
Review design guidelines
for green environments for all children and families
Speakers: Nilda
Cosco, ASLA,
Moore, Affiliate ASLA,
North Carolina State U
Lolly Tai, FASLA, Temple University
1.5 PDH, Registered with LACES/HSW,
AICP, NY/HSW, FL
July 1, 2010
August 6, 2010
Get the latest news feed and press releases on
the 2010 ASLA Annual Meeting & EXPO...
Dig The Dirt: ASLA’s blog about Landscape
Architecture, Sustainability, and Environmental News...--------------------------
成江东@sina
职业:IT民工
家乡:三峡.宜昌
工作:中关村
目标:做最好的DBA
爱好:读书,电影,音乐,旅游
性格:动中取静
喜欢的报刊杂志:
QQ:1913908
2015年九月
78910111213
14151617181920
21222324252627
开源中文检索引擘
mysql的cacti监控模版
免费物理备份
常去的地方
架构师陈思儒
张瑞@Alibaba
lnmp一键安装
叶金荣@搜狐
高性能mysql作者
周振兴@淘宝
snda oralce 大牛
九月 6th, 2014 2,181阅读
1. 三种设置
1.1 数据字符集:
2种汉字编码 ANSI(GBK)
UNICODE(UTF8)
select hex(‘数据库’);
CAFDBEDDBFE2
select hex(‘数据库’);
E695B0E68DAEE5BA93
1.2 表字符集设置:
create table if not exists chartest.t_utf8
(chartable varchar(100),
charclient varchar(100),
chardata varchar(100),
data varchar(100),
msg varchar(500),
primary key (chartable,charclient,chardata)
)default charset=utf8;
1.3 客户端字符集:
set names latin1;
SET NAMES sets the three session system variables character_set_client, character_set_connection, and character_set_results to the given character set
2.1 直接转换
gbk-&utf8 99%不可以,少数可以,如联通
mysql& select hex(‘联通’);
+————-+
| hex(‘联通’)
+————-+
| C1AACDA8
+————-+
echo “obase=2;ibase=16;C1AACDA8″ |bc
符合utf8 2字节符号编码规则110… 10…,智能识别有可能出错。
可能引起误断的汉字见:
utf8-&gbk 可以,尾部奇数字节截断
gbk-&latin1
可以,变为单字节字符
utf8-&latin1
可以,变为单字节字符
2.2 通过unicode转换(相当于python中的decode,encode)
gbk-&unicode-&utf8 可以
utf8-&unicode-&gbk 可以
gbk-&unicode-&latin1
utf8-&unicode-&latin1
set names 相当于直接转换,insert into 相当于通过unicode转换。
3. 摸拟测试
一共有18种组合, 下面一一列举:
gbk-&gbk-&gbk 按顺序分别表示插入字符串原始字符集,客户端字符集,表字符集。
3.1 完全匹配
gbk-&gbk-&gbk
utf8-&utf8-&utf8
3.2 插入时进行正确的unicode转换
gbk-&gbk-&utf8
select hex(convert(CONVERT(UNHEX( ‘CAFDBEDDBFE2′) USING gbk) using utf8));
E695B0E68DAEE5BA93
utf8-&utf8-&gbk
select hex(convert(CONVERT(UNHEX( &#E68DAEE5BA93′) USING utf8) using gbk));
CAFDBEDDBFE2
3.3 latin1单字节流保存
gbk-&latin1-&latin1
select hex(convert(CONVERT(UNHEX( ‘CAFDBEDDBFE2′) USING latin1) using latin1));
CAFDBEDDBFE2
utf8-&latin1-&latin1
select hex(convert(CONVERT(UNHEX( &#E68DAEE5BA93′) USING latin1) using latin1));
E695B0E68DAEE5BA93
3.4 转为unicode后再转为latin1 无法表示,转为3F (latin1 中的?号)
gbk-&gbk-&latin1
select hex(convert(CONVERT(UNHEX( ‘CAFDBEDDBFE2′) USING gbk) using latin1));
utf8-&utf8-&latin1
select hex(convert(CONVERT(UNHEX( &#E68DAEE5BA93′) USING utf8) using latin1));
utf8-&gbk-&latin1
select hex(convert(CONVERT(UNHEX( &#E68DAEE5BA93′) USING gbk) using latin1));
3.5 不符合utf8规则,无法转换,保存为空
gbk-&utf8-&latin1
gbk-&utf8-&utf8
gbk-&utf8-&gbk
select hex(convert(CONVERT(UNHEX( ‘CAFDBEDDBFE2′) USING utf8) using latin1));
Warning | 1300 | Invalid utf8 character string: ‘CAFDBE’
3.6 utf8 转换为双字节汉字后,尾部奇数字节截断
utf8-&gbk-&gbk
select hex(convert(CONVERT(UNHEX( &#E68DAEE5BA93′) USING gbk) using gbk));
E695B0E68DAEE5BA
| Warning | 1300 | Invalid gbk character string: * |
utf8-&gbk-&utf8
select hex(convert(CONVERT(UNHEX( &#E68DAEE5BA93′) USING gbk) using utf8));
E98F81EE690B4
| Warning | 1300 | Invalid gbk character string: * |
3.7 latin1 7f后的字符无法全部转为gbk
gbk-&latin1-&gbk
select hex(convert(CONVERT(UNHEX( ‘CAFDBEDDBFE2′) USING latin1) using gbk));
3F3F3F3F3F3F
utf8-&latin1-&gbk 注意 B0转为A1E3 93转为A1B0
select hex(convert(CONVERT(UNHEX( &#E68DAEE5BA93′) USING latin1) using gbk));
3F3FA1E33F3F3F3F3FA1B0
3.8 latin1字符转为utf8,单字节变为2字节或者3字节
gbk-&latin1-&utf8 12字节
select hex(convert(CONVERT(UNHEX( ‘CAFDBEDDBFE2′) USING latin1) using utf8));
C38AC3BDC2BEC39DC2BFC3A2
utf8-&latin1-&utf8
20字节, latin1 的 95,93转为utf8的3字节,所以是3*6+2=20字节
select hex(convert(CONVERT(UNHEX( &#E68DAEE5BA93′) USING latin1) using utf8));
C3A6E280A2C2B0C3A6C28DC2AEC3A5C2BAE2809C
4. 脚本测试
4.1 测试脚本
#!/usr/bin/sh
sql=”
create table if not exists chartest.t_utf8
(chartable varchar(100),
charclient varchar(100),
chardata varchar(100),
data varchar(100),
msg varchar(500),
primary key (chartable,charclient,chardata)
)default charset=utf8;
create table if not exists chartest.t_gbk
(chartable varchar(100),
charclient varchar(100),
chardata varchar(100),
data varchar(100),
msg varchar(500),
primary key (chartable,charclient,chardata)
)default charset=
create table if not exists chartest.t_latin1
(chartable varchar(100),
charclient varchar(100),
chardata varchar(100),
data varchar(100),
msg varchar(500),
primary key (chartable,charclient,chardata)
)default charset=latin1;
truncate table chartest.t_utf8;
truncate table chartest.t_
truncate table chartest.t_latin1;
mysql -e”$sql”
utf8=$(cat utf8.txt)
gbk=$(cat gb2312.txt)
charset=(latin1 utf8 gbk)
for((i=0;i&${#charset[*]};i++))
charclient=${charset[$i]}
for((j=0;j&${#charset[*]};j++))
chartable=${charset[$j]}
echo “client=$charclient table=$chartable data=utf8″
sql=”set names $insert into t_$chartable values(‘$chartable’,'$charclient’,'utf8′,’$utf8′,”);”
msg=$(mysql –show-warnings=true -e”$sql”)
sql=”update t_$chartable set msg=”$msg” where chartable=’$chartable’ and charclient=’$charclient’ and chardata=’utf8′;”
mysql –show-warnings=true -e”$sql”
echo “client=$charclient table=$chartable data=gbk”
sql=”set names $insert into t_$chartable values(‘$chartable’,'$charclient’,'gbk’,'$gbk’,”);”
#echo “$sql”
msg=$(mysql –show-warnings=true -e”$sql”)
sql=”update t_$chartable set msg=”$msg” where chartable=’$chartable’ and charclient=’$charclient’ and chardata=’gbk’;”
mysql –show-warnings=true -e”$sql”
4.2 测试结果
securecrt gbk
set names latin1;
set names utf8;
十二月 7th, 2013 6,539阅读
要了解MySQL的编码,必须先了解编码。
所谓的信息,在计算机中不过是一串的位(bit:0 or 1),每8个bit组成了一个字节,而这些字节到底表示什么,取决于读到这些对象的上下文,1个字节序列,可以表示整数,字符串或者机器指令,当然也可以表示中文,日文,甚至上古文字。
信息=位+上下文
而为了确定字符与二进制位的对应关系,就必须制定编码。
因为计算机是西方发明的,所以最早的也是我们最熟悉的编码ASCII主要包含的也就是26个基本拉丁字母(大小写)、阿拉伯数目字和英式标点符号等。但地球其它地方的人们也需要现代化,也要使用计算机,靠ASCII仅仅7个bit,128个字符位是不可能表示所有国家、地区的字符的。特别是像汉字这种非拼音字符,常用的也有几千个,1个字节都放下不。
于是经过很多年的发展,现在的字符编码主要有两大体系,ANSI和UNICODE。
ANSI是由一个母体(ASCII)出发,产生了多个不兼容平行分支(LATIN1、GBK、JIS)。而UNICODE体系则将所有的字符统一于一种编码规范之下,所谓“天下大同,唯此一码”,可以包含地球上所有的语言文字符号。
ANSI编码占用的空间较少,如汉字是双字节,但只能支持一种非ASCII语言,适用于个性化的个人PC操作系统;UNICODE支持所有语言,但是是多字节编码,占用空间较大,如汉字是3字节,一般适用于数据传输和web页面。
下面具体来说说这2大体系:
二,ANSI体系
ANSI是指美国国家标准学会,成立于1918年,制定了很多工业标准,ASCII编码是由ANSI最初制定;而UNICODE由ISO制定,ISO是国际标准化组织,成立于1947年,ANSI是ISO的重要成员。
ANSI体系:
又称为ISO-646,ASCII只对基本控制符号、英文、数字、标点进行了编码,为了在计算机上存储各个国家的语言,各个国家根据自己的语言特点,制定了完全兼容ASCII的编码,例如西欧语言的latin-1(ISO-8859-1)、中文的GBK、日语的JIS等,需要注意的是这些编码之间互不兼容。当信息在国际间交流时,无法将属于两种语言的文字,存储在同一段 ANSI 编码的文本中。在windows系统中,ANSI编码具体采用哪种表现形式,由操作系统的语言内码决定,简体中文的采用GBK表达,日文用JIS表达等。所以,可以认为,在简体中文windows系统中,ANSI=GBK,在日文系统中,ANSI=JIS。
美国信息交换标准代码,等同于国际标准ISO/IEC 646,ASCII第一次以规范标准的型态发表是在1967年,最后一次更新则是在1986年,至今为止共定义了128个字符;33个字符无法显示(这是以现今操作系统为依归,但在DOS模式下可显示出一些诸如笑脸、扑克牌花式等8-bit符号),且这33个字符多数都已是陈旧的控制字符。控制字符的用途主要是用来操控已经处理过的文字。在33个字符之外的是95个可显示的字符,包含26个基本拉丁字母、阿拉伯数目字和英式标点符号等。 ASCII的局限在于只能显示26个基本拉丁字母、阿拉伯数目字和英式标点符号,因此只能用于显示现代美国英语(而且在处理英语当中的外来词如na?ve、café、élite等等时,所有重音符号都不得不去掉,即使这样做会违反拼写规则)。
ASCII的33个控制字符:
名称/意义
空字符(Null)
垂直定位符号
取消变换(Shift out)
启用变换(Shift in)
跳出数据通讯
设备控制一(XON 激活软件速度控制)
设备控制二
设备控制三(XOFF 停用软件速度控制)
设备控制四
确认失败回应
同步用暂停
区块传输结束
连接介质中断
文件分区符
组群分隔符
记录分隔符
单元分隔符
注意,输入控制字符需要用ctrl+脱出字符,比如telnet下面的Escape character is ‘^]’ ,实际输入要用ctrl+],而不是^+]
ASCII的95个可显示字符:
GB2312-&GBK-&GB18030:
GB 2312 或 GB 2312-80 是中华人民共和国国家标准简体中文字符集,全称《信息交换用汉字编码字符集·基本集》,又称GB0,由中国国家标准总局发布,日实施。GB2312编码通行于中国大陆;新加坡等地也采用此编码。中国大陆几乎所有的中文系统和国际化的软件都支持GB 2312。
GB 2312标准共收录6763个汉字,其中一级汉字3755个,二级汉字3008个;同时收录了包括拉丁字母、希腊字母、日文平假名及片假名字母、俄语西里尔字母在内的682个字符。
GB 2312中对所收汉字进行了“分区”处理,每区含有94个汉字/符号。这种表示方式也称为区位码。
01-09区为特殊符号。
16-55区为一级汉字,按拼音排序。
56-87区为二级汉字,按部首/笔画排序。
10-15区及88-94区则未有编码。
每个汉字及符号以两个字节来表示。第一个字节称为“高位字节”,第二个字节称为“低位字节”。“高位字节”使用了0xA1-0xF7(把01-87区的区号加上0xA0),“低位字节”使用了0xA1-0xFE(把01-94加上0xA0)。
因为GB 2312 不足表示所有的汉字,此编码标准只收录了6763个常用汉字,而GB字库以外大量汉字,如中国前总理朱镕基的“镕”字,只能通过补字软件拼字或其它造字程序补字。尽管补出的汉字在字形上满足需要,但在字体风格、大小、结构方面难以协调统一,并且无法检索。
1993年,Unicode 1.1版本推出,收录中国大陆、台湾、日本及韩国通用字符集的汉字,总共有20,902个。
中国大陆订定了等同于Unicode 1.1版本的“GB ”“信息技术通用多八位编码字符集(UCS)第一部分:体系结构与基本多文种平面”。
微软利用GB 2312-80未使用的编码空间,收录GB 全部字符制定了GBK编码。它实际上是CP936字码表 (Code Page 936)的扩展(之前CP936和GB 2312-80一模一样),最早实现于Windows 95简体中文版。虽然GBK收录GB 的全部字符,但编码方式并不相同。
GBK自身并非国家标准,只是曾由国家技术监督局标准化司、电子工业部科技与质量监督司公布为“技术规范指导性文件”。
原始GB13000一直未被业界采用,后续国家标准GB18030技术上兼容GBK而非GB13000。
编码范围如下表:
水准 GBK/1
水准 GBK/2
水准 GBK/3
40–FE (7F除外)
水准 GBK/4
40–A0 (7F除外)
水准 GBK/5
40–A0 (7F除外)
40–A0 (7F除外)
GBK共收入21886个汉字和图形符号
* GB2312中的全部汉字、非汉字符号。
* BIG5中的全部汉字。
* 与ISO 10646相应的国家标准GB13000中的其它CJK汉字,以上合计20902个汉字。
* 其它汉字、部首、符号,共计984个。
中华人民共和国国家质量技术监督局于日推出了GB 标准,以取代GBK。GB 除保留全部GBK编码汉字,在第二字节把能使用范围再度进行扩展,增加了大约一百个汉字及四位元组编码空间,但是将GBK作为子集全部保留。
GB18030 编码是一二四字节变长编码。一字节部分从 0×0~0×7F 与 ASCII 编码兼容。 二字节部分, 首字节从 0×81~0xFE, 尾字节从 0×40~0×7E 以及 0×80~0xFE, 与 GBK标准基本兼容。
四字节部分, 第一字节从 0×81~0xFE, 第二字节从 0×30~0×39, 第三和第四字节的范围和前两个字节分别相同。 四字节部分覆盖了从 0×0080 开始, 除去二字节部分已经覆盖的所有 Unicode 3.1 码位。也就是说, GB18030 编码在码位空间上做到了与 Unicode 标准一一对应,这一点与 UTF-8 编码类似。
三,UNICODE体系
下面来看看UNICODE体系:
UNICODE即ISO-10646,最终由ISO组织规范。
UNICODE定义了字符编码的序列关系。而真正进行编码的时候,有两种方式,UCS-2和UCS-4。UCS-2为两字节编码,范围在0×0000-0xffff之间,定义2^16=65536个码位;UCS-4为四字节编码,范围在0×xffffffff之间,定义2^32=个码位。
由于UNICODE是多字节编码,在传输过程中需在字节序、容错性方面进行定义。基本可以认为 UTF16=UCS2,UTF-32=UCS4,这两种都是定长编码,即每个字符的编码都是固定长度的。通常意义上所说的UNICODE是指UTF-16。
而UTF8是一种变长编码,每个字符的编码长度由1-3位不等;这样在单字节字符为主的情况下,UTF-8在存储效率、传输效率和容错性上有显著的性能优势,成为互联网数据传输和网页展示的主流编码方式。
在 Unix 下使用 UCS-2 (或 UCS-4) 会导致非常严重的问题. 用这些编码的字符串会包含一些特殊的字符, 比如 * 或 ‘/’, 它们在 文件名和其他 C 库函数参数里都有特别的含义. 另外, 大多数使用 ASCII 文件的 UNIX 下的工具, 如果不进行重大修改是无法读取 16 位的字符的. 基于这些原因, 在文件名, 文本文件, 环境变量等地方, UCS-2 不适合作为 Unicode 的外部编码.
UCS和UTF的转换关系如下:
Basic Multilingual Plane只用到3字节长。
U- – U-0000007F: 0xxxxxxx
U- – U-000007FF: 110xxxxx 10xxxxxx
U- – U-0000FFFF: 1110xxxx 10xxxxxx 10xxxxxx
U- – U-001FFFFF: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
U- – U-03FFFFFF: 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
U- – U-7FFFFFFF: xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
转换关系如下图所示:
三,编码转换
ASCII、LATIN-1、UNICODE之间是如何转换?
如图所示,以10进制计。ASCII和LATIN1是单字节编码,8BIT的LATIN1编码当最高位为0时,与ASCII一致。
16BIT的UTF16当高8位为0时,低八位表示的编码与LATIN1一致。
而ANSI和UNICODE通过编码对照表,一一进行对应和转换,每种ANSI体系的编码,都存在一个转换UNICODE的对照表。例如GBK&=&UTF16对照表、JIS&=&UTF16对照表。
五,编码识别
对于一个文本文件,计算机如何知道是采用何种编码并进行正确的显示呢?
字节顺序标记(英语:byte-order mark,BOM)是位于码点U+FEFF的统一码字符的名称。当以UTF-16或UTF-32来将UCS/统一码字符所组成的字符串编码时,这个字符被用来标示其字节序。它常被用来当做标示文件是以UTF-8、UTF-16或UTF-32编码的记号并且可以表示是大端序还是小端序。具体如下表所示:
不同编码的字节顺序标记的表示
239 187 191
(大端序)
00 00 FE FF
0 0 254 255
(小端序)
FF FE 00 00
255 254 0 0
2B 2F 76和以下的一个字节:[ 38 | 39 | 2B | 2F ]
43 47 118和以下的一个字节:[ 56 | 57 | 43 | 47 ]
247 100 76
DD 73 66 73
221 115 102 115
14 254 255
FB EE 28 及可能跟随着FF
251 238 40 及可能跟随着255
84 31 95 33
132 49 149 51
如果没有BOM标志,采用顺序检测:如果所有单字节字符都在0×00-0×7f之间,则为ASCII;否则,根据编码特征确定是哪种编码,如果错误的编码导致编码特征冲突,则会出现乱码。
比如当txt文档中一切字符都在 C0≤AA(第一个字节)≤DF 80≤BB(第二个字节)≤BF 这个范围时,notepad都无法确认文档地格式,没有自动依照GB2312格式来”Display”。 比如”联通”就是C1 AA CD A8,刚好在上面范围内,所以不能正常显现。因为程序认为它更像一个UTF-8编码文本。这是因为“联通”两个字的GB-2312编码看起来更像UTF-8编码导致的。
十一月 9th, 2013 874阅读
13年4月13日MySQL中国用户组第三次活动做的一个分享:
十一月 7th, 2013 878阅读
1,共享表空间最大的问题就是空间永不回缩,注意,是永不。
不管是 或者是 OPTIMIZE TABLE
ALTER TABLE tb ENGINE=InnoDB; 已经占用的磁盘空间都不会释放。
一旦存储空间达到阀值,就不可能使用常规手段让空间回缩了,这意味着实例很可能要被迁移。而对于独立表空间,可以选择的路会很多。对于非自增主键的表,使用OPTIMIZE TABLE有可能就释放出10%-30%的空间。
2,但是就利用率来来说,共享表空间的free space(不管是没有被使用还是已经被删除)可以被所有表利用,利用率更[......]
六月 9th, 2013 2,042阅读
如何评价一个公司数据库运维水平的高低?用什么来进行横向与纵向对比?自动化平台建设的目标是什么?必须有相应的指标体系来指导,此指标体系必须满足以下条件:
o 可以用数字来测算和衡量
o 最终指标,而不是中间指标
比如有时DBA会关注数据库的吞吐量,但吞吐量越高不能代表数据库提供的服务质量越好,开发人员关心这个指标的原因也是因为担心过高的吞吐量会影响响应时间或者造成系统不可用,所以这只是一个中间指标。
o 可以全面衡量一个网站的数据库运维水平,而不会顾此失彼
o 有人文关注
1.1. 数据安全
数据安全是第一位的,DBA的首要职责必须保证不丢数据,丢掉数据就丢掉了饭碗!
这有3方面的含义:
1)在[......]
一月 30th, 2013 2,435阅读
《打造Facebook》的笔记(作者:王淮; 祝文让)
日下午11:46
打造Facebook
王淮; 祝文让
硅谷每5到10年出一家改变世界的公司,Google(谷歌)之后就属Facebook了
“只有好的棋手才会走运(Only the good players are lucky)”,
扎克伯格最喜欢三句话。1.维吉尔:“天佑勇者。”2.毕加索:“每一个孩子都是天生的[......]
十二月 22nd, 2012 2,306阅读
flush tables for export 5.6.6开始引入,表空间拷备可以用来:
.非生产环境统计数据
.可以用来恢复从库的一致性
.数据单表恢复,比重新load data到库要快的多
在源库上执行flush tables for export保证数据一致性,拷备的时候还要拷备.cfg文件。
它的执行原理是:
.先放shared metadata locks,如果其它session还有活动事务改表或者其它表持有相关锁,就会等待这个锁。这个锁获得后,将支持只读操作
.如果引擘不支持,会返回ER_ILLEGAL_HA
.通知引擘准备export,引擘要保证变更已经刷新到磁盘
.sessio[......]
十二月 9th, 2012 2,465阅读
1)5.1.21后可以进行毫秒级的慢查询记录,设置long_query_time=0.01
2)mysqldump 不支持regex ,对于分表比较多的库,导出可以采用先 mysql -N information_schema -e “select table_name from tables where table_name like ‘prefix_%’” & tbs.txt 然后 mysqldump db `cat tbs.txt` & dump.sql的方式曲线救国
3)mysql的row格式binlog,insert,del[......]
十一月 3rd, 2012 2,028阅读
一,安全提高
1.提供保存加密认证信息的方法,使用.f文件。使用可以创建此文件。这个文件可以进行连接数据库的访问授权。会进行加密而不是明文存储。客户端只会在内存中进行解密。这样密码以非明文方式存储,不会在命令行或者环境变量中暴露。更多信息,访问 .
2.使用sha256_password,支持更为强大的用户密码加密方式。这个插件是内置的。更多信息访问
十月 18th, 2012 4,341阅读
以下版本5.5.12
1) 最常用方法,开启general_log
set global general_log=
309 Connect
root@127.0.0.1 on
309 Connect
Access denied for user ‘root’@&#.0.1′ (using password: YES)
但使用socket登陆失败的不会记录
2) 使用error log
set global log_warnings=2;
错误密码登[......]
- 24,666 views - 16,295 views - 9,605 views - 7,421 views - 6,539 views - 6,235 views - 5,136 views - 5,090 views - 4,341 views - 3,925 views - 3,835 views - 3,778 views - 3,711 views - 3,594 views - 3,546 views - 3,442 views - 3,422 views - 3,059 views - 3,057 views - 3,015 views - 3,014 views - 2,960 views - 2,931 views - 2,863 views - 2,791 views - 2,662 views - 2,580 views - 2,480 views - 2,465 views - 2,435 views - 2,398 views - 2,392 views - 2,348 views - 2,318 views - 2,306 views - 2,278 views - 2,221 views - 2,205 views - 2,181 views - 2,141 views - 2,134 views - 2,114 views - 2,107 views - 2,042 views - 2,028 views - 1,956 views - 1,951 views - 1,933 views - 1,919 views - 1,910 views}

我要回帖

更多关于 乘以 英文 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信