yxhxj2006

常用链接

统计

最新评论

oracle,字母大小写转换

函数:upper()
功能:将字符串中的小写字母转换为大写字母。
语法:Upper( string )
参数string:要将其中的小写字母转换为大写字母的字符串返回值String。函数执行成功时返回将小写字母转换为大写字母后的字符串,发生错误时返回空字符串("")。如果string参数的值为NULL,Upper()函数返回NULL。


更新table表的name列为大写:
UPDATE table SET name = upper(name);

在程序中实现大写查询:
select * from table where name=upper('admin');

在程序中实现大小写忽略查训:
select * from table where upper(name)=upper('admin'); 

posted on 2014-02-07 14:15 奋斗成就男人 阅读(1065) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: