189 8069 5689

mysql怎么删除逗号 mysql中如何删除表中某个字段

mysql里怎么取消掉字符串最后一位的逗号

select ..

成都创新互联主营麦积网站建设的网络公司,主营网站建设方案,App定制开发,麦积h5微信小程序开发搭建,麦积网站营销推广欢迎麦积等地区企业咨询

, case when right(thefield,1) = ',' 

then left(thefield, len(thefield)-1)

else thefield end

...

MySQL 现在有张表Temp,如图,想把字段中逗号全部给去掉,请问该怎么处理?谢谢

update 表名 set attr3= replace(attr3,",","");

update 表名 set attr4= replace(attr4,",","");

update 表名 set attr5= replace(attr5,",","");

mysql数据库查询问题去掉逗号

cast(100000.0000 as decimal(15,2))

convert(value, decimal(12,2))

两者都行


当前名称:mysql怎么删除逗号 mysql中如何删除表中某个字段
网站URL:http://cdxtjz.cn/article/ddijcih.html

其他资讯