首页 >>  正文

oracle数据库替换字符

来源:baiyundou.net   日期:2024-09-20

郁希侦3118关于oracle中替换字符串的问题,高手请进 -
云柱天14731118267 ______ oracle有一个trim函数可以把空格去掉,至于to_single_byte不能对大于4000字符的字符串处理 这个问题可不可以把源自段用substr函数切分到几个合适长度的字段(临时表里或可以的话直接在原表添加新字段),然后再用to_single_byte,处理好后update回去.数据量大的话不建议用update操作,会产生大量的行迁移情况,最好是直接抽数据往一个新表里更新.

郁希侦3118求oracle中字段值替换语句 现有表t1中字段和字段值如下. -
云柱天14731118267 ______ update t1 set 字段1 = replace(字段1,'小明','张三'),字段2 = replace(字段1,'小明','张三')

郁希侦3118oracle sql语句中,有没有能够将结果集中数字替换成汉字的函数? -
云柱天14731118267 ______ 用decode()函数. 具体语句为:select decode(flag,1,'是',0,'否') from table,语句的意思是选择表中的“1”替换为“是”,“0”替换为“否”. decode函数,是oracle公司的SQL软件ORACLE PL/SQL所提供的特有函数计算方式,以其...

郁希侦3118oracle 字段为空时 用null替换 -
云柱天14731118267 ______ select nvl(字段,0) from dual 或者 select replace(字段,' ','0') from dual

郁希侦3118oracle数据库查询数据,标题英文如何替换成注释中文? -
云柱天14731118267 ______ sql语句如下: select b.column_name column_name, --字段名 b.data_type data_type, --字段类型 b.data_length, --字段长度 a.comments comments --字段注释 from user_col_comments a, user_tab_columns b where a.table_name = b.TABLE_NAME and a.column_name = b.COLUMN_NAME and a.table_name = 'table_name';

郁希侦3118Oracle SQL 根据数据字典多次替换字符串 -
云柱天14731118267 ______ select tab_a.a,tab_b.b from tab_a,tab_b where tab_a.b=tab_a.a

郁希侦3118oracle 批量替换多字段内容 -
云柱天14731118267 ______ update As_user set uflag=1 where ulag=0; select * from as_user where uflag in(0,1) order by uflag; 希望我的回答对你有帮助.

郁希侦3118如何对sql数据库中的某一字段进行替换? -
云柱天14731118267 ______ 1.SQL字段名称替换,可以用AS. 如:select ID,NAME as 姓名 from table 2.替换某字段某些行的值可以用update. 如:update table set Name='zhang san' where name='条件表达式' 3.列值替换还有replace函数. 答案:update 表名 set 列1='yr' where 列1='hr' repalce(要置换的字段,需要替代的字符,替换后的字符) update 表名 set 列1=replace(列1,'hr','yr');

郁希侦3118如何取得oracle数据库中字段的描述内容 -
云柱天14731118267 ______ 查询表名称: select table_name from user_tables;--包含你所有的表 查询表的列: select column_name from user_tab_columns where table_name=upper('tablename');--包换所有表的列

(编辑:自媒体)
关于我们 | 客户服务 | 服务条款 | 联系我们 | 免责声明 | 网站地图 @ 白云都 2024