--修改字段为首字母大写 -- EXEC sp_rename 'ShenBao_CaiGouFuKuan.Tid', 'Tid', @objtype = 'COLUMN'; SELECT 'EXEC sp_rename ''' + TABLE_NAME + '.' + COLUMN_NAME + ''', ''' + CONCAT(UPPER(LEFT(COLUMN_NAME,1)) , LOWER( RIGHT(COLUMN_NAME,len(COLUMN_NAME) - 1))) + '''