函数 有没有什么函数可以去掉一个表中某列下的所有数据的最后一个字符啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update tb set col = left(col,len(col)-1) --更新Update TableName Set ColName = Left(ColName, Len(ColName) - 1)--查詢Select Left(ColName, Len(ColName) - 1) As ColName From TableName 1update tb set col = left(col,len(col)-1)2update tb set col = substring(col,1,len(col)-1)3update tb set col = stuff(col,len(col)-1,1,'') 用这个拉 最简单left(col,len(col)-1) 树形结构的数据,要以怎样的形式存储在数据库中。。 在使用参数查询时如何根据自己的pk排除自己? sql 2000 安装在win2003后返回表记录的问题 关于排序?(1,10,11,2,3,4) 如何删除日期最靠前的记录(在线等待) 有没有函数能得到字段的长度? 奇怪的视图问题 sql数据库怎么把默认值设置为两个字段相减 怎样把一张表里的数据插入到另外一张表里,而不覆盖原有的相同数据? 存储过程问题,高手帮我 Java连接SQL Server 2000 一个简单的问题
--更新
Update TableName Set ColName = Left(ColName, Len(ColName) - 1)
--查詢
Select Left(ColName, Len(ColName) - 1) As ColName From TableName
update tb
set col = left(col,len(col)-1)
2
update tb
set col = substring(col,1,len(col)-1)
3
update tb
set col = stuff(col,len(col)-1,1,'')
left(col,len(col)-1)