标签:首字母 大写 table set name nbsp asc where hello
‘hello world‘ ----> ‘Hello world‘
update tableName set columnName=CHAR(ASCII(SUBSTRING(columnName, 1, 1))-32)+SUBSTRING(columnName, 2, len(columnName))
WHERE (ASCII(SUBSTRING(columnName, 1, 1)) >96) AND (ASCII(SUBSTRING(columnName, 1, 1)) < 123)
update tableName set columnName= STUFF( columnName,1,1,UPPER(SUBSTRING(columnName,1,1)))
标签:首字母 大写 table set name nbsp asc where hello
原文地址:http://www.cnblogs.com/AdamLee/p/6180359.html