现在有一列中的数据是
13099197155??
在号码后面有?? 我用什么语句可以删除在号码后代??的
------解决方案--------------------
- SQL code
update tb set col = replace(col , '?' , '')update tb set col = left(col ,11) --如果是手机号.
update tb set col = replace(col , '?' , '')update tb set col = left(col ,11) --如果是手机号.